PayPal Buttons Interface

The following table details out the interface and available props for paypal.Buttons.

API Return Value Description
paypal.Buttons( props : ButtonProps ) ButtonComponent Used to initialize the PayPal Buttons component. Pass in ButtonProps to customize the behavior of the buttons, returns an instance of ButtonComponent which can be used to render, close, and other tasks.
ButtonComponent.render(element : string) Promise\ Render the button to an element on the page, using a string based selector.
ButtonComponent.close() Promise<undefined> Close the button and remove it from the page
ButtonProps.createOrder(CreateOrderData, CreateOrderActions) Promise<undefined> Close the button and remove it from the page