Hier der API Call, den wir empfangen haben, als mir die PayPal Plus “Payment Wall” angezeigt wurde:
Request:
{ “intent”: “sale”, “payer”: { “payment_method”: “paypal” }, “transactions”: [{ “amount”: { “total”: “15.89”, “currency”: “EUR”, “details”: { “subtotal”: “11.99”, “tax”: “0.00”, “shipping”: “3.90” } }, “item_list”: { “items”: [{ “name”: “Illuma-Lid Crosshatch Brass”, “sku”: “1507950”, “price”: “11.99”, “currency”: “EUR”, “quantity”: 1 }], “shipping_address”: { “recipient_name”: “*** ****”, “line1”: “***** *** ****** **”, “city”: “******”, “postal_code”: “*****”, “country_code”: “DE”, “default_address”: false, “preferred_address”: false, “primary_address”: false, “disable_for_transaction”: false } }, “related_resources”: , “supplementary_data_map”: { } }], “experience_profile_id”: “XP-S99U-S7LJ-CBNB-YZ48”, “redirect_urls”: { “return_url”: “https://www.xxxxxx/payment_paypal/return”, “cancel_url”: “https://www.xxxxxx//payment_paypal/cancel” } }
Response:
{ “id”: “PAY-5V807161W6145045DK2VBISA”, “intent”: “sale”, “state”: “created”, “payer”: { “payment_method”: “paypal” }, “transactions”: [{ “amount”: { “total”: “15.89”, “currency”: “EUR”, “details”: { “subtotal”: “11.99”, “tax”: “0.00”, “shipping”: “3.90” } }, “item_list”: { “items”: [{ “name”: “Artikel Brass”, “sku”: “1655850”, “price”: “11.99”, “currency”: “EUR”, “quantity”: 1 }], “shipping_address”: { “recipient_name”: “*** ****”, “line1”: “***** *** ****** **”, “city”: “******”, “postal_code”: “*****”, “country_code”: “DE”, “default_address”: false, “preferred_address”: false, “primary_address”: false, “disable_for_transaction”: false } }, “related_resources”: , “supplementary_data_map”: { } }], “experience_profile_id”: “XP-S99U-S7LJ-CBNB-YZ48”, “create_time”: “2016-01-28T13:14:48Z”, “links”: [{ “href”: “https://api.paypal.com/v1/payments/payment/PAY-5V807161W6145045DK2VBISA”, “rel”: “self”, “method”: “GET” }, { “href”: “https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-7NS65315GY224700M”, “rel”: “approval_url”, “method”: “REDIRECT” }, { “href”: “https://api.paypal.com/v1/payments/payment/PAY-5V807161W6145045DK2VBISA/execute”, “rel”: “execute”, “method”: “POST” }] }
Dann ein zweiter API Call ein 16 Sekunden spaeter (dabei handelt es sich um eine Eigenheit in Shopware)
Request:
{ “intent”: “sale”, “payer”: { “payment_method”: “paypal” }, “transactions”: [{ “amount”: { “total”: “15.89”, “currency”: “EUR”, “details”: { “subtotal”: “11.99”, “tax”: “0.00”, “shipping”: “3.90” } }, “item_list”: { “items”: [{ “name”: “Illuma-Lid Crosshatch Brass”, “sku”: “1507950”, “price”: “11.99”, “currency”: “EUR”, “quantity”: 1 }], “shipping_address”: { “recipient_name”: “*** ****”, “line1”: “***** *** ****** **”, “city”: “******”, “postal_code”: “*****”, “country_code”: “DE”, “default_address”: false, “preferred_address”: false, “primary_address”: false, “disable_for_transaction”: false } }, “related_resources”: , “supplementary_data_map”: { } }], “experience_profile_id”: “XP-S99U-S7LJ-CBNB-YZ48”, “redirect_urls”: { “return_url”: “https://www.xxxxxx/.de/payment_paypal/return”, “cancel_url”: “https://www.xxxxxx/.de/payment_paypal/cancel” } }
Response:
{ “id”: “PAY-7X482225SL004860YK2VBIWA”, “intent”: “sale”, “state”: “created”, “payer”: { “payment_method”: “paypal” }, “transactions”: [{ “amount”: { “total”: “15.89”, “currency”: “EUR”, “details”: { “subtotal”: “11.99”, “tax”: “0.00”, “shipping”: “3.90” } }, “item_list”: { “items”: [{ “name”: “Illuma-Lid Crosshatch Brass”, “sku”: “1507950”, “price”: “11.99”, “currency”: “EUR”, “quantity”: 1 }], “shipping_address”: { “recipient_name”: “*** ****”, “line1”: “***** *** ****** **”, “city”: “******”, “postal_code”: “*****”, “country_code”: “DE”, “default_address”: false, “preferred_address”: false, “primary_address”: false, “disable_for_transaction”: false } }, “related_resources”: , “supplementary_data_map”: { } }], “experience_profile_id”: “XP-S99U-S7LJ-CBNB-YZ48”, “create_time”: “2016-01-28T13:15:04Z”, “links”: [{ “href”: “https://api.paypal.com/v1/payments/payment/PAY-7X482225SL004860YK2VBIWA”, “rel”: “self”, “method”: “GET” }, { “href”: “https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-8E5565459X4244242”, “rel”: “approval_url”, “method”: “REDIRECT” }, { “href”: “https://api.paypal.com/v1/payments/payment/PAY-7X482225SL004860YK2VBIWA/execute”, “rel”: “execute”, “method”: “POST” }] }