Update soft descriptions on buyer's credit card statement PayPal JS SDK

mwbspitta
New Community Member

Our requirement here is to change the soft descriptor value in the credit card bank statement dynamically and how to achieve it?

I am aware that it can be updated as one time from my account settings but my requirement here is I am acting as a payment gateway to my subscribers. So, I need to show my subscribers company name instead of ours on the customer credit card statement.

Reference tag-"https://www.paypal.com/sdk/js?client-id=@clientId&components=buttons&disable-funding=paylater"

Here is my piece of code.

 

paypal.Buttons({
        createOrder: function (data, actions) {
            // This function sets up the details of the transaction, including the amount and line item details.
            return actions.order.create({
                purchase_units: [{
                    amount: {
                        value: PaymentAmount
                    }
                }],
                application_context: {
                    shipping_preference: "NO_SHIPPING",
                    COMMENT1: companyName,
                    COMMENT2: '@invoiceNo',
                    INVNUM: '@invoiceNo',
                    brand_name: companyName,
                    soft_descriptor: companyName,
                    invoice_id:'@invoiceNo'
                },
            });
        },

 

 

 

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.