I'm trying to use requestOneTimePayment, and this implementation was previously working, but now it no longer works. what I get now is Error requesting one time payment.
And that is all the error message sent.
import { requestOneTimePayment } from "react-native-paypal";
I'm trying to use requestOneTimePayment, and this implementation was previously working, but now it no longer works. what I get now is Error requesting one time payment. And that is all the error message sent.
import { requestOneTimePayment } from "react-native-paypal";
const clientToken = eyJ2ZXJzaW9uIjoyLCJhdXRob3JpemF0aW9uRmluZ2VycHJpbnQiOiJleUowZVhBaU9pSktWMVFpTENKaGJHY2lPaUpGVXpJMU5pSXNJbXRwWkNJNklqSXdNVGd3TkRJMk1UWXRjMkZ1WkdKdmVDSXNJbWx6Y3lJNkltaDBkSEJ6T2k4dllYQnBMbk5oYm1SaWIzZ3VZbkpoYVc1MGNtVmxaMkYwWlhkaGVTNWpiMjBpZlEuZXlKbGVIQWlPakUzTVRJek1qY3dPVGtzSW1wMGFTSTZJalU0T0RFNFpUZzRMVFZtWkdVdE5HRmxaaTA1T1dJeUxUZzBaVFl4TUdRMlpUTTBNQ0lzSW5OMVlpSTZJbWRqT1hCNU5UUnVlV2QyWkhoek4yc2lMQ0pwYzNNaU9pSm9kSFJ3Y3pvdkwyRndhUzV6WVc1a1ltOTRMbUp5WVdsdWRISmxaV2RoZEdWM1lYa3VZMjl0SWl3aWJXVnlZMmhoYm5RaU9uc2ljSFZpYkdsalgybGtJam9pWjJNNWNIazFORzU1WjNaa2VITTNheUlzSW5abGNtbG1lVjlqWVhKa1gySjVYMlJsWm1GMWJIUWlPbVpoYkhObGZTd2ljbWxuYUhSeklqcGJJbTFoYm1GblpWOTJZWFZzZENKZExDSnpZMjl3WlNJNld5SkNjbUZwYm5SeVpXVTZWbUYxYkhRaVhTd2liM0IwYVc5dWN5STZlMzE5LlpPaExRSnlyZHRvamdBN3kxNXdORHZXYkRWaXpYaFFyS2tENnVkcHgzMWFGdVkzZWwydy1MOVlPSHhZWU1walRHczRXZW80V2NFZlljSmg2cWthWHp3IiwiY29uZmlnVXJsIjoiaHR0cHM6Ly9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GJ1Z0NKZ1J3VlVRZVJLeDRlbkhtUnVGMk16Wm95WGtwRTFOLUxpS1Q4M282bEoxMk1SXzlTWE1YSS1NZ1RKREpfd19DSDUiLCJiYXNlVXJsIjoiaHR0cHM6Ly9hc3NldHMuYnJhaW50cmVlZ2F0ZXdheS5jb20iLCJhc3NldHNVcmwiOiJodHRwczovL2NoZWNrb3V0LnBheXBhbC5jb20iLCJkaXJlY3RCYXNlVXJsIjpudWxsLCJlbnZpcm9ubWVudCI6Im9mZmxpbmUiLCJicmFpbnRyZWVDbGllbnRJZCI6Im1hc3RlcmNsaWVudDMiLCJtZXJjaGFudEFjY291bnRJZCI6InNpbWRhbiIsImN1cnJlbmN5SXNvQ29kZSI6IkVVUiJ9fQ==
const response = await requestOneTimePayment( clientToken, { amount: "50", currency: "USD", localeCode: "en_GB", shippingAddressRequired: false, userAction: "commit", intent: "sale", } );