Giter Site home page Giter Site logo

Comments (4)

arshmancodes avatar arshmancodes commented on September 26, 2024

Below is the code to perform the payment using the Paymob Pakistan Plugin,
Make sure to initialize before performing the Payment Request and you will get the response from the iFrame in the onPayment function as PaymobResponse type.

final PaymobResponse? response = await PaymobPakistan.instance.pay(
  context: context,
  currency: "PKR",
  paymentType: PaymentType.card, // or you can User paymentType: PaymentType.jazzcash OR PaymentType.easypaisa
  amountInCents: "50000", // 500 PKR
  onPayment: (response) => setState(() => this.response = response), // Optional
)

PS: Can you show me the code how are you trying to perform the request. Make sure to remove your keys before posting over here.

from paymob_pakistan.

ShakeelKhalid1913 avatar ShakeelKhalid1913 commented on September 26, 2024

Haha.. I don't know what happened. it's working now. Thank you for your time and I really think it is a great flutter library.
I just want to know (out of scope)

I'm only getting this type. how can I add jazcash and easypaisa.
image

secondly how can I receive transaction payments from Paymob to my personal account?

from paymob_pakistan.

arshmancodes avatar arshmancodes commented on September 26, 2024

Contact Paymob to approve your account and Make it LIVE, When your account will be live you will see the Integration ID's of Jazzcash and Easypaisa in your paymob console, Just add those Integration ID's while initializing the PaymobPakistan Object.

Then you can use the parameter PaymentType to PaymentType.jazzcash for Jazzcash and PaymentType.easypaisa for Easypaisa.

If you have any other queries let me know otherwise i'll close this issue.

from paymob_pakistan.

ShakeelKhalid1913 avatar ShakeelKhalid1913 commented on September 26, 2024

Alright Thank you

from paymob_pakistan.

Related Issues (6)

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.