我有一个网络表单,将数据(和客户)发送到PayPal。 我的JSON请求:
{
"intent":"sale",
"payer":{
"payment_method":"paypal"
},
"redirect_urls":{
"return_url":"http://dev1.url.de/payment/execute?method=paypal&price=1&order_number=123465&success=true",
"cancel_url":"http://dev1.url.de/payment/execute?method=paypal&price=1&order_number=123465&success=false"
},
"transactions":[
{
"amount":{
"currency":"EUR",
"total":"1"
},
"item_list":{
"items":[
{
"name":"123465",
"currency":"EUR",
"quantity":1,
"price":"1"
}
]
},
"invoice_number":"123465"
}
]
}
和PayPal回复:
{
"id":"PAY-0YV50781X7702245FKVDWC5A",
"create_time":"2015-05-04T12:09:24Z",
"update_time":"2015-05-04T12:09:24Z",
"state":"created",
"intent":"sale",
"payer":{
"payment_method":"paypal",
"payer_info":{
"shipping_address":{
}
}
},
"transactions":[
{
"amount":{
"total":"1.00",
"currency":"EUR",
"details":{
"subtotal":"1.00"
}
},
"invoice_number":"123465",
"item_list":{
"items":[
{
"name":"123465",
"price":"1.00",
"currency":"EUR",
"quantity":"1"
}
]
},
"related_resources":[
]
}
],
"links":[
{
"href":"https://api.paypal.com/v1/payments/payment/PAY-0YV70781X7192245FKVDWC5A",
"rel":"self",
"method":"GET"
},
{
"href":"https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-38Y65870AE087743W",
"rel":"approval_url",
"method":"REDIRECT"
},
{
"href":"https://api.paypal.com/v1/payments/payment/PAY-0YV50781X7170245FKVDWC5A/execute",
"rel":"execute",
"method":"POST"
}
]
}
在PayPal网站上完成付款流程似乎一切正常。
我可以登录,我可以看到所有正确的详细信息,在我点击发送付款后,它会将我重定向到我的表单(return_url),它说我支付了。
事情是..它没有付款。
我看不到发送的钱,它永远不会到来 - 不会触发交易。我该如何找出问题?或者有人有线索吗?