We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44922
    • 131 Posts
    Asking MiniShop questions is usually a bit like shouting into the void, but here goes...!


    We're trying to integrate with a Payment system other than Paypal and need to pass a First Name and Last Name field through the payment gateway or validation will fail.
    Creating a custom payment php file in Core/Components/MiniShop2/Custom we can pull through the address fields from the msOrder snippet's tpl.msOrder chunk using

    $form = $this->modx->getObject(msOrderAddress, $order->get('id'));
    $params = array(
    'BillingName' => $form->get('receiver'),
    'BillingStreet' => $form->get('street'),
    // etc,etc
    );
    
    


    Essentially, the existing receiver field is fine for within Minshop itself as a 'Full Name' field. It's just for payment validation we need a 'First Name' and 'Last Name' field. Any attempt at adding new field to the tpl.msOrder chunk screws things up and we've not identified the correct way to edit the msOrder snippet to pull new fields either.
    We're on MiniShop 2.4.11. Any help appreciated.


      • 44922
      • 131 Posts
      My Russian is not up to much, this may provide some hints, although intended for a different outcome...
      https://modx.pro/help/8458/