You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
On android, we are setting up the Paypal Checkout in the onCreate of the MainApplication instead of doing the setup through the JS code by using the initPaypal function. To communicate the environment variable to the native code BuildConfig can be used.
It would be great to do the same on the IOS platform like that we would have the same mechanism to setup the PaypalCheckout on both platforms.
Description
On android, we are setting up the Paypal Checkout in the
onCreate
of theMainApplication
instead of doing the setup through the JS code by using theinitPaypal
function. To communicate the environment variable to the native code BuildConfig can be used.It would be great to do the same on the IOS platform like that we would have the same mechanism to setup the PaypalCheckout on both platforms.
Technical Description
Regarding the Paypal Checkout Documentation, it would be possible to setup the PaypalCheckout in the
application
function of theAppDelegate
(https://github.com/keplr-team/paypal-react-native/blob/main/example/ios/PaypalReactNativeExample/AppDelegate.m#L34).So, we could imagine to transform the
setup
function in static function (https://github.com/keplr-team/paypal-react-native/blob/main/ios/RNPaypalSDKModule.swift#L12) like that it would be possible to call it directly in the application function.The text was updated successfully, but these errors were encountered: