score:0

Please use react-paypal-express-checkout (I'm the author):

Install:

npm install --save react-paypal-express-checkout

Simplest Example (but it will show the Paypal express check out button):

import React from 'react';
import PaypalExpressBtn from 'react-paypal-express-checkout';

export default class MyApp extends React.Component {
    render() {
        const client = {
            sandbox:    'YOUR-SANDBOX-APP-ID',
            production: 'YOUR-PRODUCTION-APP-ID',
        }   
        return (
            <PaypalExpressBtn client={client} currency={'USD'} total={1.00} />
        );
    }
} 

==========

There is also a full example, in which you can have all types of callback function (e.g. completed payment-ID, return-URL etc.)

For full detailed document (as well as official guides from Paypal,) please go here:

https://github.com/thinhvo0108/react-paypal-express-checkout


Related Query

More Query from same tag