Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling modalCheckout getting token of undefined error #28

Open
ashokkumar-hub opened this issue Apr 5, 2023 · 0 comments
Open

Calling modalCheckout getting token of undefined error #28

ashokkumar-hub opened this issue Apr 5, 2023 · 0 comments

Comments

@ashokkumar-hub
Copy link

Hi,

Trying to use this Library on React-native

import { ModalCheckout, Event } from "@bambora/checkout-sdk-web";
var checkout = ModalCheckout("c47-baf353d7-d475-4664-bc89-5541b9ed9d81");
checkout.on(
            Event.Authorize,
            function(payload) {
                console.log("payload", payload);
                // The transaction ID is logged to the console upon authorisation.
            }
);
checkout.show();

For Testing, I used this curl cmd to generate a session token

curl https://api.na.bambora.com/scripts/tokenization/tokens  \
  -H "Content-Type: application/json" \
  -d '{
     "number":"4030000010001234",
     "expiry_month":"02",
     "expiry_year":"20",
     "cvd":"123"
  }'

Trying to call the payment but getting an error
Simulator Screen Shot - iPhone SE (3rd generation) - 2023-04-05 at 14 34 02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant