2017-04-16 16 views
0

私はcheckout.js でペイパルエクスプレスチェックアウトを使用し、standard javascript codeはpaypalで提供しています。Paypalエクスプレスチェックアウト - お客様の詳細

すべてが正常に動作し、支払ポップアップは次のようになります。

enter image description here

今、私の質問:それは、このポップアップに製品の詳細を追加することは可能ですか?

例のように、製品の名前と説明は? (このコードは機能しません)。

return paypal.rest.payment.create(this.props.env, this.props.client, { 
    transactions: [ 
    { 
     amount: { total: '{{ entry.itemPreis }}', currency: 'CHF' }, 
     description: 'this is some description', 
     // description: works and shows up in the paypal backend 
     // but is not visible to the customer 

     title: 'this would be the title' // doesn't work 
    } 
    ], 
}); 

私はpaypalドキュメントがかなり乱雑であることがわかります。

答えて

1

これは私のため

transactions: [ 
    { 
     amount: { total: '100', currency: 'CHF' }, 
      item_list: { 
      items: [ 
       { 
       name: 'Whateveryoufancy', 
       description: 'Lorem ipsum', 
       quantity: '1', 
       price: '100', 
       currency: 'CHF' 
       } 
      ] 
     } 
    } 
] 
の作品
関連する問題