Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set (for example) orderId as purchase_units description #89

Open
WHITE-developer opened this issue Aug 23, 2024 · 2 comments
Open

Set (for example) orderId as purchase_units description #89

WHITE-developer opened this issue Aug 23, 2024 · 2 comments

Comments

@WHITE-developer
Copy link

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

Copy link

linear bot commented Aug 23, 2024

@lukeholder
Copy link
Member

lukeholder commented Aug 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants