Changing Shipping Address on Order Confirmation Step in PayPal Express Checkout -
i using express checkout api accept payments online store. payment flow follows:
1) user adds item cart
2) user proceeds paypal
3) user enters or selects existing shipping address, confirms, , redirected order confirmation step
4) order details such shipping address retrieved paypal using getexpresscheckoutdetails.
5) on order confirmation step (prior doexpresscheckoutpayment), user has option change shipping address returned paypal. if user changes shipping address, need recalculate shipping cost new address, , submit new shipping cost, new address paypal
6) attempting part of doexpresscheckoutpayment payment call, using paymentrequest_0_shiptoname etc, shipping address within transaction details not change. (likely because these deprecated) instead, address chosen or entered on paypal remains.
how can submit new shipping address paypal without having user re-enter transaction funnel beginning?
the shipping parameters in decp not deprecated. documentation little bit misleading. it's old version of parameters, prior when added ability parallel payments ec, deprecated.
so, example, shiptoname deprecated. instead, should use paymentrequest_n_shiptoname have.
that said, whatever send in decp request should carried on paypal , end being used payment's shipping address. in fact, if don't include address in decp shouldn't end part of payment details in experience.
if want provide sample of api requests during checkout i'll happy take , see if can figure out you're going wrong.
Comments
Post a Comment