How to add product options to PayPal Checkout buttons?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using the "Client Side" code snippet from here: https://developer.paypal.com/docs/checkout/standard/integrate/
And it's taken me a bit, but I've figured out how to embed variables - the docs don't really make it clear that you need to set a variable in JS, assign your variable value to it, and then use it in the code.
Now, I'm trying to figure out how to incorporate product options such as size or color. With the older "Paypal payments standard" you could do this via os0/os1/on0/on1 per here: https://www.paypal.com/us/smarthelp/article/how-do-i-add-user-selection-options-to-my-paypal-button-...
But I'm trying to get away from payments standard, and use Paypal checkout, instead.
Can anyone point me in the right direction? It seems like an item-level option would be in the items[] array but when reviewing the docs at https://developer.paypal.com/docs/api/orders/v2/#definition-item there's no reference to adding options at all.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- PayPal Pay buttons a mysterious process in PayPal Payments Standard
- permission_denied response in call to patch order when paying by Card in Braintree Client-side Integration (JS, iOS, Android SDKs)
- Lable name of the checkout button. in PayPal Payments Standard
- Integrate PayPal Checkout, code examples not working in Sandbox Environment
- My form has recently stopped sending the quantity info direct to the paypal checkout page. in PayPal Payments Standard