mobile - paypal chained payment (or adaptive) inside iOS app + server integration -
mobile - paypal chained payment (or adaptive) inside iOS app + server integration -
i want implement paypal chained payment (is't 1 of adaptive payment methods) within marketplace iphone app , want server able track payment steps avoid multiple concurrent purchases on same product (it's physical product , can't purchased twice).
i read docs paypal adaptive payment flow, mobile integration , ipn server side implementation.
now way accomplish seems doing following:
when user clicks on pay button, client calls our server create "pending" transaction product. the client calls native paypal sdk nowadays payment view user info returned our server. paypal calls our server notify completed payment , here server completes pending transaction created. paypal calls client notify completed payment , here shown "thank-you" screen.i wouldn't create kind of things these reasons:
i have set "lock" on product avoid duplicate purchase: place can set lock right before calling paypal ui , unlock in case user cancels operation. if user stays on paypal confirmation long time? set timeout on server (for 1 hr example) wouldn't avoid user finish purchase after period! i have set payment details (like amount , receiver email) client. wrote, utilize info provided server lead me in several security , complexity issues. using native sdk user can take 1 of existing shipping addresses, can't create or edit new one. have inquire shipping address outside paypal , pass info own server.any suggestions?
at end working approach using paypal preapproval. if don't know preapproval is, imagine bank rid: inquire user permission charge him @ anytime, in our case charge seller fee commission when sells item.
keeping seller outside of transaction flow, permitted allow buyer completes checkout using express checkout implementation, within embedded webview.
with technique, asking buyer pre-authorize payment. after grants permission pass secret token webserver real payment performed (along other secure validation).
after moving money buyer seller, charge seller transaction using preapproval.
please allow me note @ end not using real paypal chained payment, approach , seems work fine now.
ios mobile sdk paypal-adaptive-payments
Comments
Post a Comment