So sieht so ein
Log aus:
(Hab mal über all ….. gesetzt, wo Daten standen.)
Hinweis Datum Level
ExecutePayment: {
"payer_id": "E...……...",
"transactions": [
{
"amount": {
"currency": "EUR",
"total": "38",
"details": {
"
shipping": "0",
"subtotal": "38",
"handling_fee": "0",
"shipping_discount": "0",
"tax": "0"
}
}
}
]
}
- {
"id": "PAYID-LWE...….......",
"intent": "sale",
"state": "approved",
"cart": "9C......",
"payer": {
"payment_method": "paypal",
"status": "VERIFIED",
"payer_info": {
"email": ".....",
"first_name": "...",
"last_name": "....",
"payer_id": ".....",
"shipping_address": {
"recipient_name": "....",
"line1": "....",
"city": ".....",
"state": "",
"postal_code": ".....",
"country_code": "DE"
},
"country_code": "DE"
}
},
"transactions": [
{
"amount": {
"total": "38.00",
"currency": "EUR",
"details": {
"subtotal": "38.00",
"tax": "0.00",
"shipping": "0.00",
"insurance": "0.00",
"handling_fee": "0.00",
"shipping_discount": "0.00"
}
},
"payee": {
"merchant_id": "YU......",
"email": "info@g......"
},
"description": "Payment",
"item_list": {
"items": [
{
"name": "Igel-Werkstatt ",
"price": "10.00",
"currency": "EUR",
"tax": "0.00",
"quantity": 1
},
{
"name": "Tiere im Winter-Werkstatt (\u00dcberwinterung)",
"price": "10.00",
"currency": "EUR",
"tax": "0.00",
"quantity": 1
},
{
"name": "Fr\u00fchbl\u00fcher-Werkstatt",
"price": "10.00",
"currency": "EUR",
"tax": "0.00",
"quantity": 1
},
{
"name": "Z\u00e4hne-Werkstatt ",
"price": "8.00",
"currency": "EUR",
"tax": "0.00",
"quantity": 1
}
],
"shipping_address": {
"recipient_name": "...……..",
"line1": "...……...",
"city": "...…………...",
"state": "",
"postal_code": "...………...",
"country_code": "DE"
}
},
"related_resources": [
{
"sale": {
"id": "58F58002EW972935T",
"state": "completed",
"amount": {
"total": "38.00",
"currency": "EUR",
"details": {
"subtotal": "38.00",
"tax": "0.00",
"shipping": "0.00",
"insurance": "0.00",
"handling_fee": "0.00",
"shipping_discount": "0.00"
}
},
"payment_mode": "INSTANT_TRANSFER",
"protection_eligibility": "ELIGIBLE",
"protection_eligibility_type": "ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE",
"transaction_fee": {
"value": "1.30",
"currency": "EUR"
},
"parent_payment": "PAYID-L...……….",
"create_time": "2019-09-23T13:44:25Z",
"update_time": "2019-09-23T13:44:25Z",
"links": [
{
"href": "
https://api.paypal.com/v1/payments/sale/..............",
"rel": "self",
"method": "GET"
},
{
"href": "
https://api.paypal.com/v1/payments/sale/............./refund",
"rel": "refund",
"method": "POST"
},
{
"href": "
https://api.paypal.com/v1/payments/payment/PAYID-LW.............",
"rel": "parent_payment",
"method": "GET"
}
]
}
}
]
}
],
"redirect_urls": {
"return_url": "
https://www.g........de/index.php?s=209&a=return&r=true&paymentId=PAYID-LW..............",
"cancel_url": "
https://www.g...........de/index.php?s=209&a=return&r=false"
},
"create_time": "2019-09-23T13:38:49Z",
"update_time": "2019-09-23T13:44:25Z",
"links": [
{
"href": "
https://api.paypal.com/v1/payments/payment/PAYID-LW.....",
"rel": "self",
"method": "GET"
}
]
}