API bővítést
Create order - jobb oldalt Simple, bal oldalt a többi
https://docs.stripe.com/api/payment_intents/create https://developer.revolut.com/docs/api/merchant#create-order customer KELL! Id főleg { id EZ a Revolut-os id vissza adjuk esetleg, vagy tároljuk? external_id Ez nincs a Revolutba, de szerintem tegyük bele full_name phone email date_of_birth } shipping _______________ contact email KELL! address EZ JÓ object Details of a physical address. street_line_1 stringrequired street_line_2 string region string city stringrequired country_code stringrequired postcode stringrequired metadata KELL! ______________ object Additional information to track your orders in your system, by providing custom metadata using "
" : "
" pairs. industry_data ________________ object Object containing industry-specific information associated with the order. You can provide data for one or multiple industries in a single order. In the following cases, industry-specific info is !!! required !!! . Omitting this information may trigger additional scrutiny and risk mitigation actions by the Revolut risk team. ... event Event ticket sellers. LINE: ________________ name type quantity unit_price_amount total_amount external_id !!! discounts array !!! taxes array name required, amount int required !!! image_urls array description !!! url string Request Body { "amount": 400, "currency": "HUF", "line_items": [ { "name": "PL4 - Standing", //OTP-nél tite "type": "service", //OTP-nél NINCS!!! "quantity": { "value": 1 //OTP-nél amount }, "unit_price_amount": 200, //OTP-nél price "total_amount": 200, //kalkulálható "external_id": "27578034", //OTP-nél "ref" "taxes": [] ????????? }, { "name": "PL4 - Standing", "type": "service", "quantity": { "value": 1 }, "unit_price_amount": 200, "total_amount": 200, "external_id": "27578035", "taxes": [] } ], "industry_data": { //OTP-nél NINCS!!! PEDIG KELL! "type": "event", "booking_id": "JPYYZM964P", "events": [ { "start_date": "2026-01-03T12:00:00+01:00", "end_date": "2026-01-03T22:00:00+01:00", "supplier": "Dataprojekt", "supplier_payment_date": "2025-12-08T00:00:00+00:00", "name": "Test Revolut", "market": "primary", "tickets": [ { "id": "27578034", "transferable": true }, { "id": "27578035", "transferable": true } ] } ] }, "metadata": { "user_id": "543303", "reference": "JPYYZM964P", "transaction_id": "4413509", "company_id": "4064", "company_name": "Dataprojekt", "reseller_id": "44", "event_ids": "142376", "event_names": "Test Revolut", "event_start_dates": "2026-01-03 12:00:00" }, "merchant_order_data": { "reference": "JPYYZM964P" }, "customer": { "id": "ca3e4b37-3eb7-43df-9ad9-6405658a3dec" }, "redirect_url": "https://dataprojekt.funcode.hu/checkout/return?reference=JPYYZM964P&transaction=4413509", "statement_descriptor_suffix": "Dataprojekt" }
KELL: ___________ metadata tetszőleges object, ha tudjuk, tovább adjuk "industry_data": { //OTP-nél NINCS!!! PEDIG KELL! "type": "event", "booking_id": "JPYYZM964P", "events": [ { "start_date": "2026-01-03T12:00:00+01:00", "end_date": "2026-01-03T22:00:00+01:00", "supplier": "Dataprojekt", "supplier_payment_date": "2025-12-08T00:00:00+00:00", "name": "Test Revolut", "market": "primary", "tickets": [ { "id": "27578034", "transferable": true }, { "id": "27578035", "transferable": true } ] } ] }, items: "type": "service", tax legyen array name required, amount int required The monetary value of the tax in minor currency units (e.g., cents for EUR). name minimum kell, akkor már lehet array Érdemes: ___________ customer { id EZ a Revolut-os id vissza adjuk esetleg, vagy tároljuk? external_id Ez nincs a Revolutba, de szerintem tegyük bele, a customer Id-ja az angol rendszerben full_name phone email date_of_birth } delivery: email futárszolgálat neve tracking number SimplePay eredeti request bodyja ----------------------------------- { "salt": "b9955d850f81d4dd339a689eaf17cd9a", "timeout": "2025-10-06T07:14:52+02:00", "sdkVersion": "SimplePay_PHP_SDK_2.1.5_250731:819df13a2304433007f4e3159610f623", "merchant": "PUBLICTESTHUF", "orderRef": "1853354717597270925650", "customer": "V2 Test User", "customerEmail": "sdk_test@simplepay.com", "language": "HU", "methods": [ "CARD" ], "currency": "HUF", "total": "25", "shippingCost": 12, "discount": "5", "items": [ { "ref": "Product ID 2", "title": "Product name 2", "desc": "Product description 2", "amount": "2", "price": "5", "tax": "0" } ], "invoice": { "name": "SimplePay V2 Tester", "country": "hu", "state": "Budapest", "city": "Budapest", "zip": "1111", "address": "Address 1", "address2": "Address 2", "phone": "06201234567" }, "delivery": { "name": "SimplePay V2 Tester", "company": "", "country": "hu", "state": "Budapest", "city": "Budapest", "zip": "1111", "address": "Delivery address", "address2": "", "phone": "06203164978" }, "url": "https:\\/\\/sdk.simplepay.hu\\/back.php", "urls": { "success": "https://sdk.simplepay.hu/success.php", "fail": "https://sdk.simplepay.hu/fail.php", "cancel": "https://sdk.simplepay.hu/cancel.php", "timeout": "https://sdk.simplepay.hu/timeout.php" }, "maySelectEmail": true, "maySelectInvoice": true, "maySelectDelivery": [ "HU", "AT", "DE" ] }
Response adatok az angol rendszer felé
start: ---------------- mennyire vegyük komolyan a methods tömb értékeit? Vegyünk-e fel újakat, vagy az egészet hagyjuk figyelmen kívül? start response: ---------------- orderRef: a start hívásban megadott orderRef értéke currency: a start hívásban megadott currency értéke transactionId: a létrejött SimplePay tranzakcióazonosítója szerintem ez ahogy van, elég. A transactionId a Gateway saját ID-ja lesz! back redirect: ---------------- Lehet belerakni, de a query talán jobb, oda mindenképpen kell ipn: ---------------- szerintem ez is csak maradjon egy event, majd meghívja a queryt query response: ---------------- Kell bele: PSP típusa PSP accountId PSP orderId ?? PSP session Id PSP payment Id-ja PSP created_at ?= paymentDate PSP completed_at ?= finishDate bármilyek end-state-be mikor került igazából szerintem ez a a plusz mezők, amiket beleraktunk? { "salt":"qnoc9TsW1fCSA3ynsM2vCfPpeTcny1eJ", "merchant":"PUBLICTESTHUF", "orderRef":"101010515383930534733", Angol oldal saját ID-ja "total":25, "transactionId":99325535, Gateway saját ID-ja "status":"FINISHED", le kell mappelgetni az OTP-sre "resultCode":"OK", "remainingTotal":0, "paymentDate":"2018-10-01T13:24:14+02:00", az úgynevezett dokumentációban semmi info nincs róla "finishDate":"2018-10-01T13:24:34+02:00", az úgynevezett dokumentációban semmi info nincs róla "method":"CARD" },