POST
Payment services/payment-services/{provider}/selectاختيار خدمة الدفع
يقيّم اختيار المزود ويعيد الإجراء التالي للعميل.
مستوى الوصولauthenticatedالحدpay_apiمنع التكرارnoneالمصادقةBearerAuth
المصدر
LuxApi/Modules/PayAPI/Controllers/PaymentServiceController.php::selectLuxPayProjects @ 146e98baa44eالمعاملات
X-Request-IDheaderClient correlation identifier. LuxPay may generate one when omitted.
Example:req_01J...providerpathProvider code registered by LuxPay.
Example:walletجسم الطلب
PaymentServiceSelectionRequestإلزامي
amountnumber | null
currencystring | null
payment_methodstring | null
payment_channelstring | null
customerobject | null
metadataobject | null
JSON example
{
"amount": 1,
"currency": "string",
"payment_method": "string",
"payment_channel": "string",
"customer": {},
"metadata": {}
}أمثلة الكود
العنوان المعروض Sandbox Placeholder حتى يتم تزويد النطاق الرسمي. لا تلصق رمز Production في متصفح عام.
curl --request POST \
--url 'https://sandbox-api.luxpay.example/v1/payment-services/wallet/select' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 1,
"currency": "string",
"payment_method": "string",
"payment_channel": "string",
"customer": {},
"metadata": {}
}'الاستجابات
200Successful response.
successboolean
Example:
truedataobject
{
"success": true,
"data": {
"service": {
"provider": "wallet",
"display_name": "LuxPay Wallet",
"enabled": true,
"can_select": true,
"currencies": [
"string"
],
"methods": [
"string"
],
"channels": [
"string"
]
},
"next_action": {},
"trace_id": "string"
}
}