moyasar_payment 0.0.6 icon indicating copy to clipboard operation
moyasar_payment: ^0.0.6 copied to clipboard

Flutter library for Moyasar. Supports Apple Pay, STC Pay and Credit Card.

🚀 Installation #

This plugin is available on Pub: https://pub.dev/packages/moyasar_payment

Add this to dependencies in your app's pubspec.yaml

moyasar_payment : latest_version

🔖 Usage #

Integrate Apple Pay

var items = <String,double>{
              'Item 1': 20.0,
              'Item 2' : 80.0
            };
                          
var res = await MoyasarPayment().applePay(
    amount: 100.0, 
    publishableKey: 'publishable_key', 
    applepayMerchantId: 'applepay_merchant_id', 
    paymentItems: items, 
    currencyCode: 'SAR', 
    countryCode: 'SA',
    description: 'description');

Integrate Credit Card

var res = await MoyasarPayment().creditCard(
    description :'description', 
    amount: 100.0, 
    publishableKey: 'publishable_key', 
    cardHolderName: 'cardHolderName', 
    cardNumber: 'cardNumber', 
    cvv: 'cvv', 
    expiryManth: 'expiryDate_manth', 
    expiryYear: 'expiryDate_yar', 
    callbackUrl: 'https://example.com/orders');

Integrate STC Pay

var res = await MoyasarPayment().stcPay(
    amount: 100.0, 
    phoneNumber: 'phoneNumber', 
    publishableKey: 'publishable_key',
    description: 'description');
STC Pay OTP Verification
var resdata = await MoyasarPayment().StcPayOtp(
    otpValue: 'otp Value',
    transactionUrl: 'transaction_url';

❤️ Found this project useful? #

If you found this project useful, then please consider giving it a ⭐ on Github and sharing it with your friends via social media.

=======


**** ## :🪄: Contributing, :disappointed: Issues and :bug: Bug Reports

The project is open to public contribution. Please feel very free to contribute. Experienced an issue or want to report a bug? Please, report it here. Remember to be as descriptive as possible.

2
likes
120
pub points
33%
popularity

Publisher

unverified uploader

Flutter library for Moyasar. Supports Apple Pay, STC Pay and Credit Card.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_pay, http

More

Packages that depend on moyasar_payment