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

How to access payment_data on process_payment function #44

Open
Alecostantini opened this issue Jul 28, 2024 · 0 comments
Open

How to access payment_data on process_payment function #44

Alecostantini opened this issue Jul 28, 2024 · 0 comments

Comments

@Alecostantini
Copy link

I've used this module and implement some modifications like following this url https://github.com/woocommerce/woocommerce-blocks/blob/trunk/docs/internal-developers/block-client-apis/checkout/checkout-api.md#usepaymentmethodinterface

{ "shipping_address": {}, "billing_address": {}, "customer_note": "", "create_account": false, "payment_method": "bacs", "payment_data": [ { "key": "myGatewayCustomData", "value": "12345" } ], "extensions": {} }

So, how can I access the payment_data, like myGatewayCustomData on process_payment function in that $order variable?

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

No branches or pull requests

1 participant