shopify - 我们可以使用 Shopify 请求属性部分 API 添加其他参数吗?
问题描述
我开发了一个带有支付扩展的 Shopify APP,想问一下我们是否可以在请求属性部分(https://shopify.dev/apps/payments/processing-a-payment)设置额外的自定义参数。
这是示例代码,我添加了额外的参数,例如 "merchant_key" : "12345"
可行吗?
任何意见都非常感谢
{
"id": "8BLFxjEHP5PkA1kNsb6iRKX9",
"merchant_key" : "12345"
"gid": "gid://shopify/PaymentSession/8BLFxjEHP5PkA1kNsb6iRKX9",
"group": "W_CUXwaUd69aOjMMlWOui7eK",
"amount": "123.00",
"currency": "CAD",
"test": false,
"merchant_locale": "en",
"payment_method": {
"type": "offsite",
"data": {
"cancel_url": "https://my-test-shop.com/1/checkouts/4c94d6f5b93f726a82dadfe45cdde432"
}
},
"proposed_at": "2020-07-13T00:00:00Z",
"customer": {
"billing_address": {
"given_name": "Alice",
"family_name": "Smith",
"line1": "123 Street",
"line2": "Suite B",
"city": "Montreal",
"postal_code": "H2Z 0B3",
"province": "Quebec",
"country_code": "CAN",
"company": ""
},
"shipping_address": {
"given_name": "Alice",
"family_name": "Smith",
"line1": "123 Street",
"line2": "Suite B",
"city": "Montreal",
"postal_code": "H2Z 0B3",
"province": "Quebec",
"country_code": "CAN",
"company": ""
},
"email": "buyer@example.com",
"phone_number": "5555555555",
"locale": "fr",
"kind": "sale"
}
}
解决方案
推荐阅读
- robotframework - 如何使用机器人框架在 Firefox 的滚动视图中捕获屏幕上的所有内容
- c++ - 在多线程 C++ 库中限制分配的内存
- javascript - AngularJS检查并获取单选按钮的值
- c++ - 如何使用指针将用户输入矩阵提高到 n 次方,现在我只能计算到 2 的幂
- activemq-artemis - ActiveMQ 阿尔忒弥斯。具有同步复制的可靠集群
- python - 如何修复 ValueError:不支持多类格式
- d3.js - 无法使用 d3.selectAll 访问表列值
- java - 数组索引值增量?我试图理解这一点 - count[str.charAt(i)]++
- javascript - 无法在角度垫表中以以下形式显示来自服务的 json 数据
- scala - 关于 spark scala 中数据的训练测试拆分