Skip to content

Error when place virtual gift card product using checkout Paypal Express #9042

@nguyetnguyen

Description

@nguyetnguyen

Steps to reproduce

  1. Add a virtual gift card product to shopping card
  2. Go to checkout page, on step Payment and Review, select payment method "Paypal Express"
  3. After redirect to Paypal page, login and Pay Now.

Expected result

  1. It should go to checkout success page without any error.

Actual result

  1. It return to checkout paypal review with error "Can't not place order." while order is create successful and Paypal marked Invoice as "Complete"

When debuging, I found that after return from Paypal Express, It call updateItem() in cart before submited quote. On function _prepareProduct(), $buyRequest is not correct data. It is currently like this:
array (
'url' => 'https://api-3t.sandbox.paypal.com/nvp',
'getPalDetails' =>
array (
'METHOD' => 'getPalDetails',
'VERSION' => '72.0',
'USER' => '',
'PWD' => '
',
'SIGNATURE' => '****',
'BUTTONSOURCE' => 'Magento_Cart_Enterprise',
),
'response' =>
array (
'PAL' => 'HDGPKTQJCZ2J6',
'LOCALE' => 'en_AU',
'TIMESTAMP' => '2017-03-28T10:38:52Z',
'CORRELATIONID' => '15c8038b4edf6',
'ACK' => 'Success',
'VERSION' => '72.0',
'BUILD' => '25237094',
),
)
$buyRequest should be included gift_card_amount, gift_card_sender, gift_card_email_sender, ...

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions