Giter Site home page Giter Site logo

ashinzekene / angular-rave Goto Github PK

View Code? Open in Web Editor NEW
22.0 5.0 14.0 2.71 MB

๐Ÿ’ต An angular2+ module for integrating payments using the rave gateway

Home Page: https://ashinzekene.github.io/angular-rave

License: MIT License

TypeScript 89.02% JavaScript 7.98% HTML 2.74% CSS 0.26%
payments angular module transaction nigeria flutterwave gateway ravepay rave money

angular-rave's People

Contributors

ashinzekene avatar okeyokoro avatar tyronasaurus-rex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

angular-rave's Issues

Observations

I noticed the callback event is not as effective in catching failing payments as the docs describe, and a scenario you might want to consider is Mobile money payment, e.g. MPesa and MTN Ghana MoMo, as flutterwave returns a pending payment payload, and does not mean a payment failure since the user still has to go input their PIN on their phone, thus eventually letting the web hook tell you it's final status

A suggestion will be to have an explicit callback function for each payment status and currently, the onclose event behaves as a better replacement for specifying the callback event.

I will suggest onclose should listen to the modal close event, as it is the default confirm box is in place for now

Overall, great work.

PaymentInstance in Documentation

Hey!

In the documentation, i see a variable payment instance that gets created,
paymentInstance: PaymentInstance;

But in paymentInit,

 paymentInit(paymentInstance) {
    this.paymentFailure = paymentInstance;
    console.log('Payment about to begin', paymentInstance);
  }

this.paymentFailure gets set, which is a function, is this correct?

Issues with documentation

Hi,
Thanks for this awesome repo, I believe there is a mistake with the current documentation where the close handler is not working as expected from documentation. I believe the close handler event in the directive should be onclose instead of close. Please advise
Thanks and regards.

PaymentInstance and autoclose Issue

I tried Importing "PaymentInstance" it is not a member of what the module exports.

apparently property "autoClose" doesn't event exist on both the component or the directive class.

Can't bind to 'autoClose' since it isn't a known property of 'button'. ("
#raveBtn
angular-rave
[ERROR ->][autoClose]="true"
[raveOptions]="paymentOptions",
(callback)="saveResponse($event)"
"): ng:///OrderDetailsPageModule/OrderDetailsPage.html@82:8

used as <button
#raveBtn
angular-rave
[autoClose]="true"
[raveOptions]="paymentOptions",
(callback)="saveResponse($event)"
(onclose)="paymentCancelled()"
class="raveBtn"
>PAY NOW

Callback functions not called

Hello,
I just integrated your package and it works fine but the 3 callback functions are not being called, paymentSuccess($event), paymentFailure(), paymentInit().

I am using the angular-rave component.

How to import the live script and also how to close payment modal on payment complete

Hi!
Great plugin. I am using Angular 6 and it's working great so far. Just two questions:

  1. How can I import the live script? Should I just place the reference to it in my index.html? I can see the plugin runs fine without importing anything as it used the sandbox script.

  2. When payment is complete, how can I close the modal just like x.close() in the main documentation.

Thanks!

Callback not being called

My specified callback function is not being called even after a successful transaction

Lib version: 2.0.1
Angular version: 9.1.3

Confirmation Modal not closing

Changing text

image
Can the package modify these texts or do you know of a way to modify them!

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.