Giter Site home page Giter Site logo

idpay_payment_package's Introduction

idpay_payment_package

pub package style: effective dart

A package for making payment with id pay easy

For getting the package you should add:

idpay_payment_package: 0.0.1

Getting Started With Making A Payment Request:

PaymentRequest request = PaymentRequest(
            orderId: 2,
            paymentAmountRial: 10000,
            callBackUrl: 'ArmanCoders.com/payment',
            userFullName: 'Reza Taghizadeh',
            userPhone: '+905366526420',
            userMail: '[email protected]',
            paymentDescription: 'Just For Test');

In the second step you can easily add your payment with:

 IdPayResponse response = await IdPayPayment.getIdPayResponse(
            request: request, apiKey: '6a7f99eb-7c20-4412-a972-6dfb7cd253a4');

You can using payment in test environment by using :

  • boolean isSandbox : true . the defualt value is false
 IdPayResponse response = await IdPayPayment.getIdPayResponse(
            request: request, apiKey: '6a7f99eb-7c20-4412-a972-6dfb7cd253a4',isSandbox: false);

At the end your response is containe:

  • String paymentLink// is '' if has error
  • String error // if not exist is ''
  • int statusCode // is 201 if has no error

idpay_payment_package's People

Contributors

alirezat66 avatar

Stargazers

Ehsan Aramide avatar Hadi Azarnasab avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.