Parse + Stripe iOS main.js

Finally. OK so here is the most basic code that WORKS for using Parse + Stripe. iOS Code – (IBAction)save:(id)sender { STPCard *card = [[STPCard alloc] init]; card.number = self.paymentTextField.cardNumber; card.expMonth = self.paymentTextField.expirationMonth; card.expYear = self.paymentTextField.expirationYear; card.cvc = self.paymentTextField.cvc; NSLog(@”%@, %@”, self.paymentTextField.cvc, self.paymentTextField.cardNumber); [[STPAPIClient sharedClient] createTokenWithCard:card completion:^(STPToken *token, NSError *error) { if (error) { NSLog(@”up … Read more

Stripe Payment: Getting Error as Customer cus_***** does not have a linked card with ID tok_*****

There are three different ways to create a charge: with the source parameter only. In this case, source needs to be a token or source ID (created by Checkout or Stripe.js), i.e. a string that starts with tok_ or src_. with the customer parameter only. In this case, customer needs to be a customer ID, … Read more

Meteor: Proper use of Meteor.wrapAsync on server

From the Meteor.wrapAsync http://docs.meteor.com/#meteor_wrapasync you can see that you need to pass it a function and optionally a context, whereas on your two attempts you are passing the RESULT of calling the async version of Stripe.customers.create. Meteor.methods({ stripeCreateUser: function(options) { // get a sync version of our API async func var stripeCustomersCreateSync=Meteor.wrapAsync(Stripe.customers.create,Stripe.customers); // call the … Read more

cURL error 60: SSL certificate: unable to get local issuer certificate

How to solve this problem: download and extract cacert.pem following the instructions at https://curl.se/docs/caextract.html save it on your filesystem somewhere (for example, XAMPP users might use C:\xampp\php\extras\ssl\cacert.pem) in your php.ini, put this file location in the [curl] section (putting it in the [openssl] section is also a good idea): [curl] curl.cainfo = “C:\xampp\php\extras\ssl\cacert.pem” [openssl] openssl.cafile … Read more