Error: http_code = 415

Paypal Antwort:

Curl Fehler-Meldung:

Array
(
    [url] => https://api.paypal.com/v1/payments/payment
    [content_type] => 
    [http_code] => 415
    [header_size] => 278
    [request_size] => 1183
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 0.320099
    [namelookup_time] => 2.4E-5
    [connect_time] => 0.024592
    [pretransfer_time] => 0.062081
    [size_upload] => 886
    [size_download] => 0
    [speed_download] => 0
    [speed_upload] => 2767
    [download_content_length] => 0
    [upload_content_length] => 886
    [starttransfer_time] => 0.320083
    [redirect_time] => 0
    [redirect_url] => 
    [primary_ip] => 173.0.84.66
    [certinfo] => Array
        (
        )

    [primary_port] => 443
    [local_ip] => 89.110.131.55
    [local_port] => 52878
)

Ihre Daten:

{
    "intent": "sale",
    "payer": {
        "payment_method": "paypal"
    },
    "transactions": [
        {
            "amount": {
                "total": "355.81",
                "currency": "EUR"
            },
            "description": "InvoiceFactory Digital Download",
            "item_list": {
                "items": [
                    {
                        "quantity": "1",
                        "name": "InvoiceFactory_Server.zip",
                        "price": "355.81",
                        "currency": "EUR",
                        "tax": "0"
                    }
                ]
            }
        }
    ],
    "redirect_urls": {
        "return_url": "http:\/\/invoicefactory.de\/paypal_server.php?file=InvoiceFactory_Server.zip",
        "cancel_url": "http:\/\/invoicefactory.de\/paypal_server.php?file=InvoiceFactory_Server.zip"
    }
}

Curl Version:

{
    "version_number": 470784,
    "age": 3,
    "features": 968605,
    "ssl_version_number": 0,
    "version": "7.47.0",
    "host": "x86_64-pc-linux-gnu",
    "ssl_version": "OpenSSL\/1.0.2g",
    "libz_version": "1.2.8",
    "protocols": [
        "dict",
        "file",
        "ftp",
        "ftps",
        "gopher",
        "http",
        "https",
        "imap",
        "imaps",
        "ldap",
        "ldaps",
        "pop3",
        "pop3s",
        "rtmp",
        "rtsp",
        "smb",
        "smbs",
        "smtp",
        "smtps",
        "telnet",
        "tftp"
    ]
}