angularjs - Stripe popup showing wrong currency -


i've setup stripe checkout using noodliopay example (here) using ionic framework , angularjs. i've set currency pounds on charging amount, popup button still showing dollar symbol. below code snippet factory

self.chargeuser = function(stripetoken, productmeta) {     var qcharge = $q.defer();     var chargeurl = noodlio_pay_api_url + "/charge/token";      var param = {         source: stripetoken,         amount: math.floor(productmeta.pricegbp*100), // amount in penny         currency: "gbp",         description: "",         stripe_account: stripe_account_id,         test: true     };      $http.post(noodlio_pay_api_url + "/charge/token", param)     .success(         function(stripeinvoicedata){             qcharge.resolve(stripeinvoicedata);         }     )     .error(         function(error){             console.log(error)             qcharge.reject(error);         }     );     return qcharge.promise; } 

enter image description here

can me this?is there way change currency symbol?

for payment through stripe there 2 steps:

  1. get stripe token
  2. charge card

earlier, adding currency key on charging card seen in example. but, when added currency on getting stripe token, issue solved.

thanks


Comments

Popular posts from this blog

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -