通过此处找到的集成指南第 7 步进行操作,其中规定在拒绝授权时将在响应中找到代码
所以我只是打印出对控制台的响应,但所有看到的都是亚马逊支付响应对象?我像这样在集成指南的第 6 步中请求授权
response = client.authorize(
amazon_order_reference_id=session['order_reference_id'],
authorization_reference_id=rand(),
authorization_amount=totalamount,
transaction_timeout=0,
capture_now=True)
print('authorize response ',response)
我在控制台中得到的是authorize response <amazon_pay.payment_response.PaymentResponse object at 0x7f7f9494b8d0>
如何从响应对象中获取实际拒绝代码(无效付款、交易超时等)?我正在用沙盒中的一张预配置卡模拟交易超时......
人到中年有点甜
相关分类