craftcms/commerce-paypal-checkout

Set (for example) orderId as purchase_units description

Opened this issue · 2 comments

We also use your commerce-stripe plugin.

There we can overwrite the description send to stripe with an event to whatever value we want (PaymentIntents::EVENT_BUILD_GATEWAY_REQUEST)

Is it possible to create a similar event for this plugin to overwrite the description in this function: https://github.com/craftcms/commerce-paypal-checkout/blob/3.x/src/gateways/Gateway.php#L783

Thanks, we have added this to the next release.

To get the fix early, change your craftcms/commerce-paypal-checkout requirement in composer.json to:

"require": {
  "craftcms/commerce-paypal-checkout": "3.x-dev#0280567d28825913056248b1c706a90c0d04c1a4 as 3.0.1",
  "...": "..."
}

Then run composer update.

Will update this ticket once the release is out.