New to the community? Welcome! Please read our Community Rules and Guidelines
Pay, shop, and do even more on the PayPal appGet the App
I collect the address on my website and need to pass that data to the standard checkout javascript sdk buttons so my
customers do not have to re-enter. I can't find a comprehensive list of the varible:value terms that I can pass in actions.order.create.
So far all I have been able to pass is - purchase_units: {amount: {value: '1.00'} . Anything else I add cause the buttons
to not show.
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: {
amount: {value: '1.00'}
shipping: {
address: {
address_line_1: {value: '123 Townsend St'},
address_line_2: {value: 'Floor 6'},
admin_area_2: {value: 'San Francisco'},
admin_area_1: {value: 'CA'},
postal_code: {value: '94107'},
country_code: {value: 'US'},
}
}
}
});
},
Good day @Dmaxxx,
Thank you for posting to the PayPal community.
Please find the address variables merchants can pass in the "Create Order" API call.
https://developer.paypal.com/docs/api/orders/v2/#definition-shipping_detail.address_portable
If your still facing any issues, please create a MTS ticket via - https://www.paypal-support.com/s/?language=en_US with the detail information and error details.
Sincerely,
Chiranjeevi
PayPal/Braintree MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.
©1999-2023 PayPal, Inc. All rights reserved.