Support » Plugin: PayPal for WooCommerce » PayPal Credit Card (REST)

  • Dear team, thanks for your work, plugin and support,

    I have a problem with the Credit Card Payment via Paypal : PayPal Credit Card (REST).

    I’m working in the LIVE mode and when I made a payment via Credit Card it seems all works fine but the transaction don’t happened.

    I entered my PayPal Rest API Client ID and API Secret ID. but it seems dont works at last.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Oliver

    (@angelleyesupport)

    @phototempus, Thanks for your appreciation.

    Can you tell me if you are seeing any errors while you perform the transaction? It would be great if you can share logs from WooCommerce > Status > log.

    That’s the log, I changed some sensible information by X letters :

    [05-01-2018 09:20:31] PayPal\Core\PayPalHttpConnection: INFO : Response Status : 201
    [05-01-2018 09:20:31] PayPal\Core\PayPalHttpConnection: DEBUG : Response Headers : HTTP/1.1 201 Created, Date: Fri, 05 Jan 2018 21:20:26 GMT, Server: Apache, paypal-debug-id: 3826e3504a2dc, Content-Language: *, HTTP_X_PP_AZ_LOCATOR: sandbox.slc, Paypal-Debug-Id: 3826e3504a2dc, Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dapiplatformproxyserv%26TIME%3D451694426%26HTTP_X_PP_AZ_LOCATOR%3Dsandbox.slc; Expires=Fri, 05 Jan 2018 21:50:31 GMT; domain=.paypal.com; path=/; Secure; HttpOnly, Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT, Vary: Authorization, Content-Length: 1677, Connection: close, Content-Type: application/json, ,
    [05-01-2018 09:20:31] PayPal\Core\PayPalHttpConnection: DEBUG : Response Data : {“id”:”PAY-19029305RM445432CLJH6YGQ”,”create_time”:”2018-01-05T21:20:26Z”,”update_time”:”2018-01-05T21:20:31Z”,”state”:”approved”,”intent”:”sale”,”payer”:{“payment_method”:”credit_card”,”funding_instruments”:[{“credit_card”:{“type”:”visa”,”number”:”xxxxxxxxxxxxxxxx”,”expire_month”:”X”,”expire_year”:”XXXX”,”first_name”:”XXXXX”,”last_name”:”XXXXX”}}]},”transactions”:[{“amount”:{“total”:”9.90″,”currency”:”EUR”,”details”:{“subtotal”:”1.00″,”shipping”:”8.90″}},”description”:”Payment description”,”custom”:”{\”order_id\”:6896,\”order_key\”:\”wc_order_5a4fec0e31a16\”}”,”invoice_number”:”5a4fec0ed0ea0″,”item_list”:{“items”:[{“name”:”Regreso a casa – Etiopía”,”price”:”1.00″,”currency”:”EUR”,”quantity”:”1″}],”shipping_address”:{“recipient_name”:”ttrtttreteet”,”line1″:”trtrtrtrtr”,”line2″:”trtrt”,”city”:”XXXXX”,”state”:”B”,”postal_code”:”XXXX”,”country_code”:”ES”}},”related_resources”:[{“sale”:{“id”:”02M39802XA533863G”,”create_time”:”2018-01-05T21:20:26Z”,”update_time”:”2018-01-05T21:20:31Z”,”amount”:{“total”:”9.90″,”currency”:”EUR”},”state”:”completed”,”parent_payment”:”PAY-19029305RM445432CLJH6YGQ”,”links”:[{“href”:”https://api.sandbox.paypal.com/v1/payments/sale/02M39802XA533863G”,”rel”:”self”,”method”:”GET”},{“href”:”https://api.sandbox.paypal.com/v1/payments/sale/02M39802XA533863G/refund”,”rel”:”refund”,”method”:”POST”},{“href”:”https://api.sandbox.paypal.com/v1/payments/payment/PAY-19029305RM445432CLJH6YGQ”,”rel”:”parent_payment”,”method”:”GET”}],”fmf_details”:{},”processor_response”:{“avs_code”:”X”,”cvv_code”:”M”}}}]}],”links”:[{“href”:”https://api.sandbox.paypal.com/v1/payments/payment/PAY-19029305RM445432CLJH6YGQ”,”rel”:”self”,”method”:”GET”}]}

    ================================================================================================================================ ”

    I dont see any problems but it looks working in sandbox mode. But I’m working in LIVE mode with Paypal API credentials in LIVE mode.

    I dont understand 🙂 Have a nice day

    Hi,

    I have exactly the same problem with paypal credit card REST. When I work with Sandbox it works well but with Live it gives this message ( Error processing checkout. Please try again. )

    Thanks,
    Frersht

    Plugin Contributor angelleye

    (@angelleye)

    The sandbox log provided looks good, and you mentioned it does work in the sandbox. What we need to see is the log from a failed live transaction.

    My woocommerce logs:

    
    [05-01-2018 10:02:40] PayPal\Core\PayPalHttpConnection: INFO	: POST https://api.sandbox.paypal.com/v1/oauth2/token
    [05-01-2018 10:02:41] PayPal\Core\PayPalHttpConnection: DEBUG	: Request Headers 	: POST /v1/oauth2/token HTTP/1.1, Host: api.sandbox.paypal.com, User-Agent: PayPalSDK/PayPal-PHP-SDK 1.6.4 (platform-ver=5.6.32; bit=64; os=Linux_3.12.74-20170619.148.ELK6.x86_64; machine=x86_64; crypto-lib-ver=1.0.1e-fips; curl=7.24.0), Authorization: Basic QVJydm1UZDNlVGFfQTk2MjVwczZqX2NUN2tqWDV1aE1oRDBhS1hWVnRHdHY1YnhGZ3VDWktoQlFwN0poTUw5YmhPTnAzZUduZkNDb0pSQnA6RUhuVTlEUm11UUhWN2pHSFE0b2hCZFN3d1JyM2d4YVBZWlpUUjdYS0tIVnN3bXB4ZURUZjIxdmVOUDJCNmFlT3dZX1g3Ql9lMC0xNi1iRGE=, Accept: */*, PayPal-Partner-Attribution-Id: AngellEYE_SP_WooCommerce, Content-Length: 29, Content-Type: application/x-www-form-urlencoded, , 
    

    Best,
    Fresht

    • This reply was modified 1 year, 5 months ago by  Jan Dembowski. Reason: Fixed log error
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PayPal Credit Card (REST)’ is closed to new replies.