creditcard payments without braintree JS client side

rohrspatz
Contributor
Contributor

Hello everyone,

 

I am still searching for a way to create credit card payments without directly using braintree and javascript nor any mobile apps. I just want to use the api.

I integrated "normal" checkout flow with paypal v2 api and all works as expected but I am not able to do so for direct credit card payment. I created direct credit card payments with api v1 and all works wonderful in the sandbox, switching to live it always gets in to 502 gateway timeout without any further response.

Do I miss some settings in the merchant "plus" account? How to figure out the differences between live and sandbox?

I am using the sandbox token and of course for live the live token. Did anyone created that for German merchants with paypalrestsdk?

 

https://github.com/paypal/PayPal-Python-SDK/tree/master/paypalrestsdk

Login to Me Too
1 REPLY 1

rohrspatz
Contributor
Contributor

I have manually enabled debug for now for production mode and tested it with sandbox credticard generator CVV etc.

 

I get 401  response after it had a successful http auth with response 200.

I used credentials like described here:

https://developer.paypal.com/docs/api/overview/#get-credentials

 

And of course I changed sandbox and live credentials. When I do same request from same IP and env with curl it works. The headers sent by paypalrestsdk are exactly the same like for curl. Differences are the context, like all the fake creditcard-data and this basic auth!?

 

Both use this endpoint: "https://api.paypal.com/v1/payments/payment"

 

So what can be still differences, Headers seem to be correct. Would I get 401 only response back if creditcarddata is wrong? We had it once live and many customers told that they get this weird timeout. I assume not all of them entered data incorrectly. Furthermore it works like  a charme in the sandbox.

 

Also I have the feeling it is not a "plus" account. When I am logged in on paypal site it asks me to upgrade for plus account etc. but when I click on it I am asked to register with paypal.com!!!?!??! But we already are and see all usual payments etc.

 

Could someone check from paypal if we really have a plus / pro account to do credit card payments.

 

 

best regards and thanks for the help....

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.