-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi @yatatsu,
Why I'm stuck on add credit card screen, why I don't get token after this process, using the latest version of the package and the version of [email protected]
and the code is:----
-
PayjpCore.init({
publicKey: PAY_JP_PUBLIC_KEY_TEST,
}).then(() => {
console.log('Prod',PAY_JP_PUBLIC_KEY_TEST);
}).catch((error) => {
console.error('Error initializing PayjpCore:', error);
}); -
onPressAddCard = () => {
PayjpCardForm.startCardForm()
} -
const unsubscribePayjpForm = PayjpCardForm.onCardFormUpdate({
onCardFormProducedToken: async token => {
console.log('onCardFormProducedToken', token);return PayjpCardForm.completeCardForm() } catch (exception) { return PayjpCardForm.showTokenProcessingError('An error has occured') }
}
})
PayjpCore.init() this is working fine but I'm stuck here onCardFormUpdate
Metadata
Metadata
Assignees
Labels
No labels