1. How to install SDK
Payment Gateway Docs
  • Welcome to the Ojire SDK Documentation
  • Callback Mechanism
  • Payment Flow Diagrams
    • Payment Flow with Saved Card
    • Payment Flow without Customer ID (Anonymous/Guest Checkout)
    • Payment Flow with QRIS
    • Payment Flow with Virtual Account
    • Payment Flow with WeChat Pay
    • Payment Flow with Alipay
  • How to install SDK
    • Javascript
    • React Native
    • Kotlin / Java
    • Swift
    • Flutter
  • Payment Intents
    POST
  1. How to install SDK

Flutter

Installation#

Add the dependency to your app:
Then run flutter pub get, or use flutter pub add arto_sdk.
⚠️ Important
Get your publicKey from ArtoPay merchant dashboard.
Then from your backend, hit ArtoPay's /v1/payment-itents endpoint to retrieve secretToken and intentId values.

Specific Configuration#

Android#

Update your application's AndroidManifest.xml like this:
 <queries>
    <intent>
        <action android:name="android.intent.action.VIEW" />
        <data android:scheme="https" />
        <data android:scheme="shopeepay" />
    </intent>
</queries>

iOS#

Update your application's Info.plist like this:
<key>LSApplicationQueriesSchemes</key>
<array>
    <string>http</string>
    <string>https</string>
</array>

Basic Usage#


Callbacks#

CallbackParamsDescription
onSuccessStringPayment is succesful
onPendingStringPayment is pending
onErrorStringPayment is failed
onClosevoidUser closes payment page

Previous
Swift
Next
Payment Intents