revolut-engineering / revolut-checkout

RevolutCheckout.js as npm module
https://developer.revolut.com/docs/merchant-api/#revolutcheckout-js-reference
Other
23 stars 7 forks source link

docs(revolutPay): add action, radius and variant types #8

Closed ohansemmanuel closed 3 years ago

ohansemmanuel commented 3 years ago

Revolut Pay Typings

This PR updates the types for Revolut Pay's buttonStyles.

Usage

RC.revolutPay({
  buttonStyle: {
    // options go here
    size: 'small' | 'large',
    radius: 'none' | 'small' | 'large',
    variant: 'light' | 'dark' | 'light-outlined' ,
    action: 'donate' | 'pay' | 'subscribe' | 'buy',
  }
})