0
paypal의 SOAP API를 사용하여 지불을 처리했지만 샌드 박스 지불 처리가 정상적으로 작동하지만 다음 응답으로 실패합니다. 나는 transactions.amount.details 필드를프로덕션에서 paypal 지불 처리 중 오류가 발생했습니다.
요청을 이해하고 있지 않다 :
{"transactions": [
{
"description": "",
"amount": {
"total": "1.00",
"currency": "USD",
"details": null
}
}
],
"payer": {
"payment_method": "credit_card",
"funding_instruments": [
{
"credit_card": {
"type": "visa",
"last_name": "xxxxx",
"first_name": "xxxx",
"expire_year": "xxxx",
"expire_month": "xx",
"cvv2": "701",
"number": "xxxxxxxxxxxxxxx",
"billing_address": {
"state": "CA",
"postal_code": "94704",
"phone": null,
"line2": null,
"line1": "xxxxxxxxxxx",
"country_code": "xx",
"city": "xxxxxxxx"
}
}
}
]
},
"intent": "sale"}
응답 :
"status": 400,
"duration_time": 113,
"body": {
"message": "Invalid request - see details",
"information_link": "https://developer.paypal.com/docs/api/#VALIDATION_ERROR",
"details": [
{
"field": "transactions.amount.details",
"issue": "This field name is not defined for this resource type"
}
],
"name": "VALIDATION_ERROR",
"debug_id": "251e5ad7494cf"
},
"additional_properties": {},
"header": {
"Content-Length": "289",
"Content-Language": "*",
"CORRELATION-ID": "251e5ad7494cf",
"Date": "Tue, 20 Sep 2016 09:25:17 GMT",
"Connection": "close",
"Paypal-Debug-Id": "251e5ad7494cf",
"PROXY_SERVER_INFO": "host=dcg12javapapi9720.dcg12.slc.paypalinc.com;threadId=329",
"Content-Type": "application/json"
}
감사는이 유일한 생산 엔드 포인트 만에 시행? 샌드 박스의 경우 결제가 처리되기 때문입니다. –
그건 내 경험이었습니다. 문서 정보가 있거나 없을 수도 있지만 내 프로세스가 프로덕션 모드에서 실패했습니다. – cyberwombat