1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Adding additional_data during guest checkout.

Discussion in 'Programming/Internet' started by Felistas Waceera, Oct 8, 2018.

  1. I'm trying to pass additional data when placing an order but for some reason it's not picking up. The additional_data column in quote_payment table is still null. How do i set this. This is how i'm doing it.

    list($status, $res, $resp) = $client->request("POST", "guest-carts/{$cartId}/payment-information", [
    'json' => [
    'email' => $req->getCustomerEmail(),
    'paymentMethod' => [
    'method' => $paymentMethodCode,
    'additional_data' => array ("data" => "0rtg323232")
    ],
    'billing_address' => $this->addressToMage2($req->billingAddress)
    ]
    ]);

    Login To add answer/comment
     

Share This Page