• In sandbox mode with using visa or mastercard i get an error. logs:

    [22-01-2019 01:12:23] PayPal\Core\PayPalHttpConnection: INFO	: POST https://api.sandbox.paypal.com/v1/payments/payment
    [22-01-2019 01:12:54] PayPal\Core\PayPalHttpConnection: DEBUG	: Request Headers 	: POST /v1/payments/payment HTTP/1.1, Host: api.sandbox.paypal.com, Accept: */*, Content-Type: application/json, User-Agent: PayPalSDK/PayPal-PHP-SDK 1.6.4 (platform-ver=7.2.14; bit=64; os=Linux_2.6.32-673.26.1.lve1.4.15.el6.x86_64; machine=x86_64; crypto-lib-ver=1.0.1e; curl=7.19.7), Authorization: Bearer A21AAE_S24UiVQkN-1uG2jvjSF20J6g7U5TL132vPPc6gZOoBtr6bEJjjpYCyP5_DEX-sbfKz4j5jiyR354FOjdpy_3TXLrQw, PayPal-Request-Id: 21307064332771341154816273835444, PayPal-Partner-Attribution-Id: AngellEYE_SP_WooCommerce, Content-Length: 886, , 
    [22-01-2019 01:12:54] PayPal\Core\PayPalHttpConnection: DEBUG	: Request Data		: {"intent":"sale","payer":{"payment_method":"credit_card","funding_instruments":[{"credit_card":{"type":"visa","number":"4012888888881881","expire_month":"12","expire_year":2021,"cvv2":"234","first_name":"\u0422\u0430\u0440\u0430\u0441","last_name":"\u0425\u0432\u044b\u043b\u044c"}}]},"transactions":[{"amount":{"currency":"USD","total":"48.40","details":{"shipping":"4.40","tax":"0.00","subtotal":"44.00"}},"item_list":{"items":[{"name":"Supplement Powder","currency":"USD","quantity":1,"price":"44.00"}],"shipping_address":{"recipient_name":"\u0422\u0430\u0440\u0430\u0441\u0425\u0432\u044b\u043b\u044c","line1":"307 W Ross Ave","line2":"","city":"Tampa","state":"CA","postal_code":"33602","country_code":"US"}},"description":"Payment description","invoice_number":"5c4716b61cf07","custom":"{\"order_id\":206,\"order_key\":\"wc_order_5c47166432732\"}","soft_descriptor":"Humankind"}]}
    --------------------------------------------------------------------------------------------------------------------------------
    
    [22-01-2019 01:12:54] PayPal\Core\PayPalHttpConnection: INFO	: Response Status 	: 500
    [22-01-2019 01:12:54] PayPal\Core\PayPalHttpConnection: DEBUG	: Response Headers	: HTTP/1.1 500 Internal Server Error, Date: Tue, 22 Jan 2019 13:12:23 GMT, Server: Apache, Content-Length: 649, Connection: close, Content-Type: text/html; charset=iso-8859-1, , 
    [22-01-2019 01:12:54] PayPal\Core\PayPalHttpConnection: ERROR	: Got Http response code 500 when accessing https://api.sandbox.paypal.com/v1/payments/payment. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>500 Internal Server Error</title>
    </head><body>
    <h1>Internal Server Error</h1>
    <p>The server encountered an internal error or
    misconfiguration and was unable to complete
    your request.</p>
    <p>Please contact the server administrator,
     [email protected] and inform them of the time the error occurred,
    and anything you might have done that may have
    caused the error.</p>
    <p>More information about this error may be available
    in the server error log.</p>
    <hr>
    <address>Apache Server at <a href="mailto:[email protected]">api.sandbox.paypal.com</a> Port 443</address>
    </body></html>
    
    [22-01-2019 01:12:54] PayPal\Core\PayPalHttpConnection: DEBUG	: 
    
    ================================================================================================================================
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nextukraine

    (@nextukraine)

    Only with Visa.
    With mastercard i have the same problem as here

    Plugin Contributor angelleyesupport

    (@angelleyesupport)

    Hi @nextukraine ,

    Can you tell me which Payment gateway you are using and is that from our PayPal for woocommerce plugin?
    Can you double check and share some more insight about this error and how can I reproduce that? As the 500 internal server error simplay means a PHP error of some sort. Can you try to disable all extra plugin except for woo and ours and see if you still get the same error?

    Thread Starter nextukraine

    (@nextukraine)

    Hi, @angelleyesupport

    It’s paypal credit card (REST) https://prntscr.com/mc0ctw with enabled sandbox mode.

    I disabled all plugins excerpt woo and your plugin and result the same ??

    Maybe it’s proplem of PayPal?

    Plugin Contributor angelleyesupport

    (@angelleyesupport)

    Well 500 internal server error simply means a PHP error, did you looked at general Error logs and see if there are any other errors being reported? Also whats the PHP version at your server? I hope its 5.6 or above?

    Please double check and if you continue to see the same error the please submit a ticket here and provide staging site details so that We could look into that further.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘500 Internal Server Error’ is closed to new replies.