craftcms / commerce-paypal-checkout

PayPal Checkout gateway for Craft Commerce.
https://plugins.craftcms.com/commerce-paypal-checkout
MIT License
5 stars 10 forks source link

Set (for example) orderId as purchase_units description #89

Open WHITE-developer opened 3 weeks ago

WHITE-developer commented 3 weeks ago

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

linear[bot] commented 3 weeks ago

PT-2114 Set (for example) orderId as purchase_units description

lukeholder commented 2 weeks ago

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.