Hi all,
the basic question is “how can I skip user info page and pass user info to StartPayment if I use Orderplan (paidplans) and not CreatePayment”?
It seems this option cannot be used if you don’t start the sales process by CreatePayment.
CreatePayment -->StartPayment with skipUserInfoPage:true (info are gathered from CreatePayment function)
Orderplan–>StartPayment with skipUserInfoPage:true (Orderplan cannot pass userinfo to StartPayment).
Here the full story.
I’m working on the payment process but I cannot find the right way to have what I need.
I need to have a custom form to get all data I need and then process the payment WITHOUT having the standard checkout with limited fields (I need more fields to create a complaint invoice)
Here the flow:
- the customer select a plan with price >0
- a lightbox opens with some input filed to be filled. When filled the customer push a button
- data inserted by customer then create a record into a custom table with all data I need to create an invoice (if the payment will be successull)
- payment process starts and the checkout opens on payment page (no userinfo page)
- if payment is successfull an order is places to paidplans
- the customer is forwarded to thank you page
To do this I use in this order:
- wixPayBackend . createPayment to pass Item, amount, currency, userinfo and receive a payment.id
- wixPay . startPayment ( payment . id , { “skipUserInfoPage” : true})
to to start the payment process and not have the first page of checkout which requests user info.
At the end, points 1,2,3,4 are ok. Points 5 is KO
I understand that based on this tutorial https://support.wix.com/en/article/velo-tutorial-using-the-paid-plans-api-for-pricing-plan-ordering-and-payment#step-4-set-up-an-event-handler-in-the-backend-to-log-purchases
I should use Orderplan and StartPayment (and not CreatePayment and StartPayment), but the only way to skip userinfo is to use CreatePayment (with the option skip user info) and pass user info to StartPayment. But doing so, I’m not able to place a paidplan order in paid Plans.
Any idea?
Thanks