Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A Flutter plugin that wraps the official SDK of HyperPay.

License

NotificationsYou must be signed in to change notification settings

YazeedAlKhalaf/hyperpay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this plugin is not official.

This plugin is a wrapper around the official SDK ofHyperPay.

🔥 Features:

  • 😌 Easy to setup!
  • 🚀 Uses the official SDK under the hood!
  • 👾 Ability to create custom UI!
  • 🧪 Fully tested!
  • 🔋 Batteries included!

💻 Server Setup

Follow the official guide to setup the two endpoints:

  1. For getting acheckoutId.
  2. For getting the status of a payment using itscheckoutId.

Official Guide:https://wordpresshyperpay.docs.oppwa.com/tutorials/mobile-sdk/integration/server

🍎 iOS Setup

This will guide your through the process of implementing the iOS part that is needed to make the plugin function correctly.

If you face any problems, look at the example app and how it is implemented. 😉

Requirements:

  • Xcode 12 and iOS 14 SDK
  • iOS 10.0+ deployment target

Steps:

  1. Register a custom URL scheme:

    1. In Xcode, click on your project in the Project Navigator and navigate toApp Target > Info > URL Types
    2. Click [+] toadd a new URL type
    3. Under URL Schemes,enter your app switch return URL scheme. This scheme must start with your app's Bundle ID. For example, if the app bundle ID iscom.companyname.appname, then your URL scheme could becom.companyname.appname.payments.
    4. Add scheme URL to a whitelist in your app's Info.plist:
    <key>LSApplicationQueriesSchemes</key> <array>     <string>com.companyname.appname.payments</string> </array>
  2. Edit your Podfile that is located under your project's iOS folder:

    1. Uncomment the line that looks something like this:
    # Before# platform :ios, '9.0'# Afterplatform:ios,'10.0'
    1. Add this code code snippet to your Podfile:
    post_installdo |installer|installer.pods_project.targets.eachdo |target|flutter_additional_ios_build_settings(target)# from here.target.build_configurations.eachdo |config|config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']='10.0'end# to here.endend

    This makes sure that all packages and plugins you use have a deployment target of10.0.You Podfile should look similar to:

    # Uncomment this line to define a global platform for your projectplatform:ios,'10.0'# some code herepost_installdo |installer|installer.pods_project.targets.eachdo |target|flutter_additional_ios_build_settings(target)target.build_configurations.eachdo |config|config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']='10.0'endendend

🤖 Android Setup

not implemented yet.

🎯 How to use?

not implemented yet.

🚨 Error Handling

All our error codes start withhyperpay- prefix.To handle errors you have to catchPlatformException.

Error CodeDescription
hyperpay-method-not-foundThis indicates that the method you invoked through the channel does not exist.
hyperpay-transaction-errorThis indicates that the transaction has an error.
hyperpay-transaction-failureThis indicates that the transaction failed for unknown reason.
hyperpay-card-payment-params-errorThis indicated that the card payment params has an error.

About

A Flutter plugin that wraps the official SDK of HyperPay.

Topics

Resources

License

Stars

Watchers

Forks


[8]ページ先頭

©2009-2026 Movatter.jp