yookassa-widget
v0.1.12
Published
YooKassa Payment Widget for React Client (yookassa.ru)
Downloads
28
Maintainers
Readme
YooKassa Payment Form Widget (React)
Example:
import PaymentForm from 'yookassa-widget'
<PaymentForm confToken={'87656eded78998ojedjlfjfdfdfmlmmedme'}
onComplete={ () => alert('Payment accepted') }>
confToken - configuration_token taken from your server response after payment initialization. It's required! If you didn't provide one, widget will not be rendered.
onComplete – callback will be executed after widget get responce from yookassa server.