Remove shipping option for Node JS Paypal Rest SDK

Owenimus
Contributor
Contributor

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.',
            }]
        }
Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.