hyper_pay_payment 1.0.6 copy "hyper_pay_payment: ^1.0.6" to clipboard
hyper_pay_payment: ^1.0.6 copied to clipboard

HYPER PAY FLUTTER PLUGIN , Payment method : VISA, MASTER, MADA, APPLE PAY

hyper_pay_flutter_plugin #



Documenation #

HyperPay Integration Guide



GET START Hyper Pay Payment #

Android Config #

  • Add JitPack to your build.gradle (Project-level) line :
 maven { url 'https://jitpack.io' } // important line
  • example

allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' } // important line
    }
}

in newer Gradle versions (settings.gradle or settings.gradle.kts), make sure JitPack is added like this: gradle

dependencyResolutionManagement {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' } // important line
    }
} 



IOS Configuration #

VISA/MADA/MASTER #

1- edit podfile :

platform :ios, '15.0'

2- cd flutter project/


flutter clean
flutter pub get

3- cd projectPathFolder/ios/


rm -rf Podfile.lock Pods
pod install
pod install --repo-update

or

rm -rf Podfile.lock Pods 
pod install --repo-update

4- in podfile make target is ios 15

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
     config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'
    end
  end
end

APPLEPAY : #

  • enable apple pay capliplitys and follow certificate


Create Payment Type : VISA/MASTER/MADA #

First Step : Generate Checkout ID #

  • First generate the checkout id from your server side, using your own ceradential you getted from Hyperpay support team

Second Step : Open UI Checkout Using Flutter Plugin #

Payment Method : VISA/MASTER/MADA

  • code dart :
                /// init request channel
                var channelRequest = HyperpayChannelRequest ( );
                channelRequest.shopperResultUrl =   "com.example.myapp.payment";  //contact hyperpay support to get merchantId
                channelRequest.merchantId =  "merchant.com.example.myapp";  //contact hyperpay support to get merchantId
                channelRequest.brandName = "VISA";  // follow documentation to get brand name, example : VISA/MASTER/MADA 
                channelRequest.checkoutId = "**************"; //get from your server side 
                channelRequest.amount =  1;
                channelRequest.isTest = false ; //false means it's live

                await HyperPayPayment.newPayment(channelRequest : channelRequest, onComplete: (bool isSuccess) {

                  setState(() {
                    isPaymentSuccess = isSuccess;
                  });

                } );
  • Note: the above code will return the result in boolean type "isSuccess", when success that's means the payment completed without any failure, But Notice you must call your server side to check status of this checkoutID if the money payed or not.

Step Three : Check Status Of Payment #

  • Checker By Your Server: Call your server side to check after completed payment in previous step, if this checkout id is completed and success charge money or not.

Screenshot Visa Payment #

  • Android Visa Screens :
Image 1 Image 2 Image 3
  • IPhone Visa Screens :
Image 1 Image 2 Image 3


Create Payment Type Apple Pay / Hyperpay : #

First Config Apple Pay: #

  • first generate the checkout id from your server side, using your own ceradential you getted from Hyperpay support team
  • create capilities of xcode "apple pay"
  • create merchant id in apple store connect
  • Contact hyperpay support to get the "merchant.cer" and "processing.cer" to be replaced into your apple store account

Second Code Open UI Apple Pay Dialog : #

  • code dart
                /// init request channel
                var channelRequest = HyperpayChannelRequest ( );
                channelRequest.shopperResultUrl =   "com.example.myapp.payment";  //contact hyperpay support to get merchantId
                channelRequest.merchantId =  "merchant.com.example.myapp";  //contact hyperpay support to get merchantId
                channelRequest.brandName = "APPLEPAY";  
                channelRequest.checkoutId = "**************"; //get from your server side 
                channelRequest.amount =  1;
                channelRequest.isTest = false ; //false means it's live

                await HyperPayPayment.newPayment(channelRequest : channelRequest, onComplete: (bool isSuccess) {

                  setState(() {
                    isPaymentSuccess = isSuccess;
                  });

                } );

Step Three : Check Status Of Payment #

  • call your server side to check after completed payment, if this checkout id is completed and success charge money or not.


MIT License #

MIT License

Copyright (c) 2025 Abdallah Mahmoud <abdallah.mahmoud.dev@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Company Dafa.sa #

Image 1
1
likes
0
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

HYPER PAY FLUTTER PLUGIN , Payment method : VISA, MASTER, MADA, APPLE PAY

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on hyper_pay_payment

Packages that implement hyper_pay_payment