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; }
can me this?is there way change currency symbol?
for payment through stripe there 2 steps:
- get stripe token
- charge card
earlier, adding currency key on charging card seen in example. but, when added currency on getting stripe token, issue solved.
thanks
Comments
Post a Comment