Neteller paysafe api:我可以在不指定消费者的情况下创建支付句柄吗?
Neteller paysafe api: Can I create a payment handle without specifying the consumer?
所以,我正在创建一个 付款处理程序 并重定向到给定的 payment_url.
为了创建支付处理程序(并获得payment_url),我必须在请求正文,
前 createPaymentHandler 请求:
{
"merchantRefNum": "merchantRefNum-201",
"transactionType": "PAYMENT",
"neteller": {
"consumerId": "netellertest_eur@neteller.com",
},
"paymentType": "NETELLER",
"amount": 500,
"currencyCode": "EUR",
"returnLinks": [{
"rel": "default",
"href": "https://example.com/payment/",
}
]
}
ex createPaymentHandleResponse
{
"id": "82d57742-e2db-48ea-a726-a60e6f8265a3",
"paymentType": "NETELLER",
"paymentHandleToken": "PHQhlWpTRKzBXubN",
"merchantRefNum": "5493aaf1a1d6dd13d2b53412f0ec",
"currencyCode": "USD",
"links": [
{
"rel": "redirect_payment",
"href": "https://customer.at.neteller.com/rest/payment/panel?mid=1090001806&mtid=pay_1090001806_00LwEhZ8WtIy8PmIhRCUi3JScUti6jKi_EUR&amount=0.01¤cy=EUR&customerHash=741e624cf6ae4fbca4338cb5597fe531"
}
]
"dupCheck": true,
"status": "INITIATED",
"liveMode": true,
"usage": "SINGLE_USE",
"action": "REDIRECT",
"executionMode": "SYNCHRONOUS",
"amount": 500,
"billingDetails": {
"street": "George Street",
"street2": "3 Edgar Buildings",
"city": "Bath",
"zip": "BA1 2FJ",
"country": "GB"
},
"customerIp": "172.0.0.1",
"timeToLiveSeconds": 899,
"gatewayResponse": {
"orderId": "ORD_0d676b4b-0eb8-4d78-af25-e41ab431e325",
"totalAmount": 3599,
"currency": "EUR",
"status": "pending",
"lang": "en_US",
"processor": "NETELLER"
},
"neteller": {
"consumerId": "johndoe@email.com",
"detail1Description": "description",
"detail1Text": "Details 1 text"
},
"returnLinks": [
{
"rel": "default",
"href": "https://usgaminggambling.com/payment/"
},
{
"rel": "on_completed",
"href": "https://usgaminggambling.com/payment/return/success"
},
{
"rel": "on_failed",
"href": "https://usgaminggambling.com/payment/return/failed"
}
],
"txnTime": "2019-01-24T10:39:50Z",
"updatedTime": "2019-01-24T10:39:50Z",
"statusTime": "2019-01-24T10:39:50Z"
}
当我重定向到 payment_url 时,电子邮件字段 已经 填充了 consumerId ("netellertest_eur@neteller.com"),并且它是只读的。
问题是,我不应该解析电子邮件,因为任何人都可以从不同的电子邮件登录到他们的 Neteller 帐户。
有没有其他方法可以在不解析 consumerId 的情况下获得付款 url?
提前致谢!
consumerId
为必填项,不通过则请求失败。
用户通常使用与您系统中相同的电子邮件,或者您可以为消费者创建一个字段,以便在重定向之前在存款页面上输入他们的电子邮件,以防他们想使用不同的电子邮件。
我在旧的 Neteller REST API 中找到了我想要的东西。
他们有一个 "orders" 端点,您可以在其中创建没有 consumerId
的订单,并且结帐时没有只读电子邮件!
最近添加了一项新功能,您可以将 consumerIdLocked=false
作为 neteller 请求对象的一部分传递。一旦结帐页面呈现,这将允许编辑电子邮件字段。
{
"merchantRefNum": "merchantRefNum-201",
"transactionType": "PAYMENT",
"neteller": {
"consumerId": "netellertest_eur@neteller.com",
"consumerIdLocked": false
},
"paymentType": "NETELLER",
"amount": 500,
"currencyCode": "EUR",
"returnLinks": [
{
"rel": "default",
"href": "https://example.com/payment/",
}
]
}
所以,我正在创建一个 付款处理程序 并重定向到给定的 payment_url.
为了创建支付处理程序(并获得payment_url),我必须在请求正文, 前 createPaymentHandler 请求:
{
"merchantRefNum": "merchantRefNum-201",
"transactionType": "PAYMENT",
"neteller": {
"consumerId": "netellertest_eur@neteller.com",
},
"paymentType": "NETELLER",
"amount": 500,
"currencyCode": "EUR",
"returnLinks": [{
"rel": "default",
"href": "https://example.com/payment/",
}
]
}
ex createPaymentHandleResponse
{
"id": "82d57742-e2db-48ea-a726-a60e6f8265a3",
"paymentType": "NETELLER",
"paymentHandleToken": "PHQhlWpTRKzBXubN",
"merchantRefNum": "5493aaf1a1d6dd13d2b53412f0ec",
"currencyCode": "USD",
"links": [
{
"rel": "redirect_payment",
"href": "https://customer.at.neteller.com/rest/payment/panel?mid=1090001806&mtid=pay_1090001806_00LwEhZ8WtIy8PmIhRCUi3JScUti6jKi_EUR&amount=0.01¤cy=EUR&customerHash=741e624cf6ae4fbca4338cb5597fe531"
}
]
"dupCheck": true,
"status": "INITIATED",
"liveMode": true,
"usage": "SINGLE_USE",
"action": "REDIRECT",
"executionMode": "SYNCHRONOUS",
"amount": 500,
"billingDetails": {
"street": "George Street",
"street2": "3 Edgar Buildings",
"city": "Bath",
"zip": "BA1 2FJ",
"country": "GB"
},
"customerIp": "172.0.0.1",
"timeToLiveSeconds": 899,
"gatewayResponse": {
"orderId": "ORD_0d676b4b-0eb8-4d78-af25-e41ab431e325",
"totalAmount": 3599,
"currency": "EUR",
"status": "pending",
"lang": "en_US",
"processor": "NETELLER"
},
"neteller": {
"consumerId": "johndoe@email.com",
"detail1Description": "description",
"detail1Text": "Details 1 text"
},
"returnLinks": [
{
"rel": "default",
"href": "https://usgaminggambling.com/payment/"
},
{
"rel": "on_completed",
"href": "https://usgaminggambling.com/payment/return/success"
},
{
"rel": "on_failed",
"href": "https://usgaminggambling.com/payment/return/failed"
}
],
"txnTime": "2019-01-24T10:39:50Z",
"updatedTime": "2019-01-24T10:39:50Z",
"statusTime": "2019-01-24T10:39:50Z"
}
当我重定向到 payment_url 时,电子邮件字段 已经 填充了 consumerId ("netellertest_eur@neteller.com"),并且它是只读的。
问题是,我不应该解析电子邮件,因为任何人都可以从不同的电子邮件登录到他们的 Neteller 帐户。
有没有其他方法可以在不解析 consumerId 的情况下获得付款 url?
提前致谢!
consumerId
为必填项,不通过则请求失败。
用户通常使用与您系统中相同的电子邮件,或者您可以为消费者创建一个字段,以便在重定向之前在存款页面上输入他们的电子邮件,以防他们想使用不同的电子邮件。
我在旧的 Neteller REST API 中找到了我想要的东西。
他们有一个 "orders" 端点,您可以在其中创建没有 consumerId
的订单,并且结帐时没有只读电子邮件!
最近添加了一项新功能,您可以将 consumerIdLocked=false
作为 neteller 请求对象的一部分传递。一旦结帐页面呈现,这将允许编辑电子邮件字段。
{
"merchantRefNum": "merchantRefNum-201",
"transactionType": "PAYMENT",
"neteller": {
"consumerId": "netellertest_eur@neteller.com",
"consumerIdLocked": false
},
"paymentType": "NETELLER",
"amount": 500,
"currencyCode": "EUR",
"returnLinks": [
{
"rel": "default",
"href": "https://example.com/payment/",
}
]
}