impactmass / cordova-rave

A Cordova extension to add Rave Pay Button into your hybrid app builds
MIT License
8 stars 7 forks source link

window.initRavePay is not a function #22

Open netwrkx opened 6 years ago

netwrkx commented 6 years ago

i'm working on ionic3

i followed this tutorial https://flutterwavedevelopers.readme.io/docs/cordova, i was able to generate rave-inline.js file(I didn't get rave.js) using npm start && npm run build then i added it to my index.html.

I extended window using lib.d.ts but i'm stucked on window.initRavePay is not a function. any idea why?

 window.initRavePay({
  "PBFPubKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "amount": 0,
  "customer_email": "************@gmail.com",
  "currency": "USD",
  "country": "**",
  "custom_title": "",
  "custom_description": "",
  "redirect_url": "https://www.google.com",
  "custom_logo": ""
    })
  }
impactmass commented 6 years ago

will be solved by the rewrite mentioned in this comment https://github.com/impactmass/cordova-rave/issues/19#issuecomment-359622092

Update: mentioned re-write has been stopped.