How to add product options to PayPal Checkout buttons?

DarrylHadfield
Contributor
Contributor

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.

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.