Installments Button in Javascript

marinaffz
Contributor
Contributor

How can i create a pay button with Installments (such as in 4 times) in javascript?

I have this for one time payment:

payment: function(data, actions) {
                                                    return actions.payment.create({
                                                        payment: {
                                                            transactions: [
                                                                {
                                                                    amount: { total: value, currency: 'BRL' },
                                                                    invoice_number: id
                                                                }
                                                            ]
                                                        }
                                                    });
                                                },

How can we make it in installments? Can't find anything for javascript in the Docs.

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.