curl -X POST https://secure.snd.payu.com/api/v2_1/orders \ -H "Content-Type: application/json" \ -H "Authorization: Bearer d9a4536e-62ba-4f60-8017-6053211d3f47" \ -d '{ "notifyUrl": "https://your.eshop.com/notify", "customerIp": "127.0.0.1", "merchantPosId": "300746", "description": "RTV market", "currencyCode": "PLN", "totalAmount": "21000", "buyer": { "email": "john.doe@example.com", "phone": "654111654", "firstName": "John", "lastName": "Doe", "language": "pl" }, "settings":{ "invoiceDisabled":"true" }, "products": [ { "name": "Wireless Mouse for Laptop", "unitPrice": "15000", "quantity": "1" }, { "name": "HDMI cable", "unitPrice": "6000", "quantity": "1" } ] }'
"notifyUrl": "https://your.eshop.com/notify",
"customerIp": "127.0.0.1",
"merchantPosId": "{merchant_pos_id}",
"description": "Your order description",
"currencyCode": "PLN",
"totalAmount": "1000",
"products": {
"products": [{
"name": "Product 1",
"unitPrice": "400",
"quantity": "1"
"name": "Product 2",
"unitPrice": "600",
"quantity": "1"
Brak komentarzy:
Prześlij komentarz