خرید بک لینک

Vote count: 0

I am using the parse cloud code and I need to create a stripe customer and add a credit card to it and save it some how. How would I save the customer to that parse user?

   stripe.customers.create({
      email: '[email protected]',
      card: 12345
    }).then(function(customer) {
      retu stripe.charges.create({
        amount: 1600,
        currency: 'usd',
        customer: customer.id
      });
    }).then(function(charge) {
      // New charge created on a new customer 
    }).catch(function(err) {
      // Deal with an error 
    });

asked 42 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 12 مرداد 1395 ساعت: 4:10

صفحه بندی