I want to remove the shipping option since it's a "Digital Goods". I'm using NodeJS with paypal-rest-sdk.
const create_payment_json = {
intent: 'sale',
payer: {
payment_method: 'paypal'
},
redirect_urls: {
return_url: 'http://localhost:8888/api/checkout',
cancel_url: 'http://localhost:8080'
},
transactions: [{
item_list: {
items: [{
name: 'Tantrum',
price: '10',
currency: 'USD',
quantity: '1'
}]
},
amount: {
total: '10',
currency: 'USD',
},
description: 'This is the payment transaction description.',
}]
}
... View more