paypal-rest-sdk

Django paypalrestsdk error - OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')]

为君一笑 提交于 2019-12-02 09:38:18
I am programming on Django and using paypalrestsdk https://github.com/paypal/PayPal-Python-SDK I am getting this error: OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')] Basically I have created BillingPlan(code snippet https://gist.github.com/axilaris/2f9cf8f5c27a8a2095c5c9abf0dc4121 ), and this appears: Payment created successfully 2018-05-08 22:44:45,358 INFO Request[POST]: https://api.sandbox.paypal.com/v1/oauth2/token 2018-05-08 22:44:45,358 DEBUG Level: sandbox 2018-05-08 22:44:45,358 DEBUG Request: Headers: {'Authorization': 'Basic

PayPal Client Authentication Failed

廉价感情. 提交于 2019-12-02 09:04:43
问题 Since I switched from the sandbox mode to the real deal I get a client authentication failed error. Config: { "port": 5000, "api": { "host": "api.paypal.com/v1/", "port": "", "client_id": "-", "client_secret": "-" } } I've double checked my client id and secret, they are enabled and aren't for the sandbox mode. Code: paypalService.getPaypalMethodOption(req.body.paymentMethodOptionId).then(function (paymentMethodOption) { var invoiceId = uuid.v4(); var payment = { "intent": "sale", "payer": {

Payum Paypal Rest config_path

落花浮王杯 提交于 2019-12-02 05:22:33
问题 I am trying to implement paypal-rest payment with the payum bundle in symfony (3.1.4). I need to get PayPal Plus running in my Symfony App. Therefore I read this article https://github.com/Payum/Payum/blob/master/docs/paypal/rest/get-it-started.md Now - I can't figure out what the 'config_path' parameter is ment to be set to and what exactly has to be provides at this config_path. Symfony states 'The config_path fields are required.' My payum config looks like this atm payum: security: token

Payum Paypal Rest config_path

北城余情 提交于 2019-12-02 01:25:25
I am trying to implement paypal-rest payment with the payum bundle in symfony (3.1.4). I need to get PayPal Plus running in my Symfony App. Therefore I read this article https://github.com/Payum/Payum/blob/master/docs/paypal/rest/get-it-started.md Now - I can't figure out what the 'config_path' parameter is ment to be set to and what exactly has to be provides at this config_path. Symfony states 'The config_path fields are required.' My payum config looks like this atm payum: security: token_storage: AppBundle\Entity\PaymentToken: { doctrine: orm } storages: AppBundle\Entity\Payment: {

PayPal REST API returning 500 Server error for credit Card Token

故事扮演 提交于 2019-12-01 17:17:45
I am trying to have the PayPal REST api create a payment with a credit card stored in the vault. But, whenever I try and make a payment with the card in the vault PayPal's API will hang for around half a minute, and then give me the following 500 error: Exception: Got Http response code 500 when accessing https://api.sandbox.paypal.com/v1/payments/payment. {"name":"INTERNAL_SERVICE_ERROR","message":"An internal service error has occurred","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR","debug_id":"e3c779ea99f73"} This is the code I am using

Is there a way to set up recurring payments with the PayPal REST API?

若如初见. 提交于 2019-12-01 13:17:48
I read this question and this one . They both said (a year ago) that recurring payments via the REST API was in the works. On my client's website, customers need to be able to pay either in full (all at once — e.g., $1200 at check out) in installments ($1200 over 6 months at $200 per month) It is crucial that his website be notified when a customer pays. I have currently set this up for option #1: app.get("/cart/checkout/paypal", isLoggedIn, isVerified, function (req, res) { var user = req.user; var paymentDetails = { "intent": "sale", "payer": { "payment_method": "paypal"}, "redirect_urls": {

Fatal error: Class 'Paypal\\Api\\Payer' not found en sdk Paypal

≯℡__Kan透↙ 提交于 2019-11-29 15:00:44
I installed PayPal SDK with composer but my php file CHECKOUT.php the error is: Fatal error: Class 'Paypal\Api\Payer' not found in C:\xampp\htdocs\pagos\checkout.php on line 23 checkout.php: <?php require ("start.php"); use Paypal\Api\Payer; use Paypal\Api\Item; $payer = new Payer(); $payer->setPaymentMethod("paypal"); $item = new Item(); $item->setName($descripcion) ->setCurrency('MXN') ->setQuantity(1) ->setPrice($precio); $itemList = new ItemList(); $itemList->setItems([$item]); start.php <?php // 1. Autoload the SDK Package. This will include all the files and classes to your autoloader //

In-Context Checkout: Uncaught SecurityError: Blocked a frame with origin: checkout.js:4734 throws error

随声附和 提交于 2019-11-28 12:52:33
I'm implementing PayPal's In-Context Checkout and am using Advanced In-Context JavaScript settings ( https://developer.paypal.com/docs/classic/express-checkout/in-context/javascript_advanced_settings ) My app is a React app. So I can't use PP API as they suggest it, that is just throw a code between <script> ... </script> tags somewhere in the page under their buttons. My React components have state and data that I need to send to server within PP function calls. So I placed PP code in componentDidMount method. And for some reason PP throws this error: checkout.js:4734 Uncaught SecurityError:

Fatal error: Class 'Paypal\Api\Payer' not found en sdk Paypal

血红的双手。 提交于 2019-11-28 09:01:11
问题 I installed PayPal SDK with composer but my php file CHECKOUT.php the error is: Fatal error: Class 'Paypal\Api\Payer' not found in C:\xampp\htdocs\pagos\checkout.php on line 23 checkout.php: <?php require ("start.php"); use Paypal\Api\Payer; use Paypal\Api\Item; $payer = new Payer(); $payer->setPaymentMethod("paypal"); $item = new Item(); $item->setName($descripcion) ->setCurrency('MXN') ->setQuantity(1) ->setPrice($precio); $itemList = new ItemList(); $itemList->setItems([$item]); start.php