1

Paypal Pro を使用して直接クレジット カード処理を行っています。2 つのトランザクションをリクエストに入れ、クレジット カードが 1 つのトランザクション オブジェクトを承認したが、資金不足のためにもう 1 つのトランザクションを拒否した場合はどうなりますか。PayPal はトランザクション全体を破棄してエラーを返しますか?

node.jsのpaypals rest apiから次のコードを直接取得します

var payment_details = {
  "intent": "sale",
  "payer": {
    "payment_method": "credit_card",
    "funding_instruments": [{
      "credit_card": {
        "type": "visa",
        "number": "4417119669820331",
        "expire_month": "11",
        "expire_year": "2018",
        "cvv2": "874",
        "first_name": "Joe",
        "last_name": "Shopper",
        "billing_address": {
          "line1": "52 N Main ST",
          "city": "Johnstown",
          "state": "OH",
          "postal_code": "43210",
          "country_code": "US" }}}]},
  "transactions": [{
    "amount": {
      "total": "7.47",
      "currency": "USD",
      "details": {
        "subtotal": "7.41",
        "tax": "0.03",
        "shipping": "0.03"}},
    "description": "This is the payment transaction description." }]};

paypal_sdk.payment.create(payment_details, function(error, payment){
  if(error){
    console.error(error);
  } else {
    console.log(payment);
  }
});

そこに 2 つのトランザクション オブジェクトを配置するとどうなりますか?

4

1 に答える 1