通过REST API出售数字商品 [英] Selling Digital goods via REST API

查看:82
本文介绍了通过REST API出售数字商品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用贝宝(Paypal)的REST API进行网站上的数字交易.我已经完成所有设置和工作,并且能够成功接受一些用户的付款并将其数字产品提供给他们.但是,到目前为止,贝宝(PayPal)仍将交易视为针对实物的交易.我没有在REST文档中找到任何有关将交易标记为数字的内容.我的其中一项付款请求示例如下:

I'm using paypal's REST API for digital transaction on my website. I have it all setup and working and have been able to successfully accept payments from a few users and give them their digital product. However, as of yet PayPal sees the transactions as if they were for physical items. I didn't find anything in the REST documentation regarding marking a transaction as digital. An example of one of my requests for the payment looks like this:

{
  "intent": "sale",
  "redirect_urls": {
    "return_url": "http:\/\/www.googulator.com\/goPro?finishPurchase=true&googleid=123456789",
    "cancel_url": "http:\/\/www.googulator.com\/goPro"
  },
  "payer": {
    "payment_method": "paypal"
  },
  "transactions": [
    {
      "amount": {
        "total": "5.00",
        "currency": "USD"
      },
      "description": "PWYW Lifetime Googulator Pro",
      "item_list": {
        "items": [
          {
            "quantity": "1",
            "name": "Lifetime Googulator Pro",
            "price": "5.00",
            "currency": "USD"
          }
        ]
      }
    }
  ]
}

所以我的问题是,REST API是否正确支持数字交易,还是我不得不诉诸使用PayPal的经典API?

So my question is, are digital transactions properly supported in the REST API, or do I have to resort to using PayPal's classic APIs?

推荐答案

REST API不正确或完全不支持数字事务.请继续使用PayPal的CLASSIC API.敬请关注.

Digital Transactions are not properly or FULLY supported in REST API. please continue to use the PayPal's CLASSIC API's . Stay tuned.

这篇关于通过REST API出售数字商品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆