Pre-requisites
iPay88 requires the installation of a separate library via Cocoapods.
If you are using Cocoapods, add the line below in your Podfile //...
pod 'PrimerSDK'
// Add the line below to enable iPay88
pod 'PrimerIPay88SDK'
end
Show Universal Checkout
Card via iPay88 is automatically presented to the customer when calling Primer.shared.showUniversalCheckout.class MyViewController: UIViewController {
func startUniversalCheckout() {
Primer.shared.showUniversalCheckout(clientToken: self.clientToken)
}
}
Customization
Check the customization guide to learn how to customize Universal Checkout.Limitations
- Due to a limitation from iPay88, the library cannot be installed with Swift Package Manager
Pre-requisites
iPay88 requires the installation of a separate library.
ℹ️ Starting from version 1.0.3 onward, we are transitioning our SDK artifact distribution to Maven Central. This means you no longer need to reference the private Artifactory URL (PRIMER_ANDROID_ARTIFACTORY_URL) for future updates.Please ensure that you remove any references to the Artifactory URL previously used for our SDK.
Amend the dependencies section of your app’s build.gradle to include the ipay88-my-android library:dependencies {
/* Other dependencies... */
implementation "io.primer:ipay88-my-android:1.0.3"
}
Show Universal Checkout
Card via iPay88 is automatically presented to the customer when calling Primer.showUniversalCheckout.class CheckoutActivity : AppCompatActivity() {
private fun setupObservers() {
viewModel.clientToken.observe(this) { clientToken ->
showUniversalCheckout(clientToken)
}
}
private fun showUniversalCheckout(clientToken: String) {
Primer.instance.showUniversalCheckout(this, clientToken)
}
}
Customization
Check the customization guide to learn how to customize Universal Checkout.Show Universal Checkout
Card via iPay88 is automatically presented to the customer when calling Primer.showUniversalCheckout.Pre-requisites
iPay88 requires the installation of a separate library.
iOS
Open Podfile inside the ./ios directory of your React Native project. Then add the following:use_frameworks!
target 'MyApp' do
pod 'PrimerSDK'
# Add the line below 👇
pod 'PrimerIPay88SDK'
post_install do |installer|
# You may have some code automatically added by React Native here
# add this
installer.pods_project.targets.each do |target|
if target.name == "primer-io-react-native" || target.name == "PrimerSDK"
target.build_configurations.each do |config|
config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerIPay88SDK"
config.build_settings['SWIFT_INCLUDE_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerIPay88SDK"
config.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/PrimerIPay88SDK/PrimerIPay88SDK.modulemap"'
config.build_settings['LIBRARY_SEARCH_PATHS'] = "$(inherited) ${PODS_CONFIGURATION_BUILD_DIR}/PrimerIPay88SDK"
config.build_settings['OTHER_LDFLAGS'] = '$(inherited) -weak_library -l"PrimerIPay88SDK"'
AndroidiPay88 requires the installation of a separate library.
ℹ️ Starting from version 1.0.3 onward, we are transitioning our SDK artifact distribution to Maven Central. This means you no longer need to reference the private Artifactory URL (PRIMER_ANDROID_ARTIFACTORY_URL) for future updates.Please ensure that you remove any references to the Artifactory URL previously used for our SDK.
Amend the dependencies section of your app’s build.gradle to include the ipay88-my-android library:dependencies {
/* Other dependencies... */
implementation "io.primer:ipay88-android:1.0.3"
}
Show Universal Checkout
Card via iPay88 is automatically presented to the customer when callingPrimer.showUniversalCheckout.const CheckoutScreen = async (props: any) => {
const onUniversalCheckoutButtonTapped = async () => {
try {
await Primer.showUniversalCheckout(clientToken)
} catch (err) {
// handle error
}
}
}
Customization
Check the customization guide to learn how to customize Universal Checkout.