我正在使用 Shopify API 来制作应用程序shopify_python_api,应用程序需要在 14 天试用期后收取经常性费用。为了使这项工作,在安装步骤后将应用程序 url 重定向到create_charge
我使用的位置
charge = shopify.RecurringApplicationCharge({
'name': "tested 123123 123",
'return_url': return_url,
'test': True,
'price': 0.02,
})
charge.save()
pprint.pprint(charge)
作为我得到的响应recurring_application_charge(4182835270)
,根据 Rest-Api文档,它应该是 json 作为decorated_return_url
和的响应confirmation_url
。
向商家收费的正确方法是什么?