Advanced Card Payments(Card Details, Address Details to be on our website)

asapate_123
New Community Member

Hello All,

 

We are looking to accept payments using Credit/Debit cards from our ecommerce website. We don't want the customer to navigate to paypal and do that, we have our page(where we have personal details, billing address and card details). All we need is to post this data securely to paypal and accept that payment. 

 

For this we are checking @advanced Card Payments, documentation is athttps://developer.paypal.com/docs/business/checkout/advanced-card-payments/ . 

Using above link, i am able to get the hosted card fields(upgraded to pro and applied for advanced card payment for sandbox). But we are not clear on the next steps(documentation says, we need to create an order and have in the javascript code). We are returning the orderID, but it gives some errors then. Not sure if we have to make further API calls, or paypal handles once we provide the order data, card details and submit.

 

Can anyone please suggest, what flow we need to implement?   Please see the errors descriptions below , the code we followed is exact same as the one mentioned in developer document. 

 

Any suggestions would be really helpful.

 

Errors: 

-> Hosted fields payment is already in progress

-> Sometimes we also get 504, 401 errors for https://cors.api.sandbox.paypal.com/v2/checkout/orders/{orderid}/validate-payment-method

 

 

Thanks,

Anand 

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.