paypal - empty related_resources in response from credit card payment -
i'm using paypalrestsdk credit card payment. when switch sandbox mode , make request, paypal service return me this:
{'update_time': u'2016-11-17t16:47:46z', 'payer': {'payment_method': u'credit_card', 'funding_instruments': [ {'credit_card': {'first_name': u'first_name', 'billing_address': {'city': u'london', 'postal_code': u'123','line1': u'fooo', 'country_code': u'en'}, 'expire_month': u'12', 'number': u'xxxxxxxxxxxx1111', 'last_name': u'last_name', 'expire_year': u'2020', 'type': u'visa'}}]}, 'links': [ {'href': u'https://api.sandbox.paypal.com/v1/payments/payment/pay-1gh35642k71421451law56mq', 'method': u'get', 'rel': u'self'} ], 'transactions': [ {'item_list': { 'items': [ {'currency': u'usd', 'price': u'367.77', 'name': u'foooo', 'quantity': u'10'}], 'shipping_address': {'city': u'london', 'line1': u'line1', 'recipient_name': u'name', 'phone': u'321312', 'state': u'state', 'postal_code': u'123', 'country_code': u'en'}}, 'related_resources': [], 'amount': {'currency': u'usd', 'total': u'3688.77', 'details': {'subtotal': u'3677.70', 'shipping': u'11.07'}}, 'description': u'charge order: #1'}], 'state': u'created', 'create_time': u'2016-11-17t16:47:46z', 'intent': u'sale', 'id': u'pay-1gh35642k71421451law56mq'}
why related_resources empty? how can test code in sandbox mode? of course in production mode related_resources contain sales in example: https://developer.paypal.com/docs/integration/direct/accept-credit-cards/
the number of credit card 4111111111111111.
4111111111111111
not working anymore, can try other 1 4929931129414294
Comments
Post a Comment