Abstract
In Chapter 12, I showed you how to use the cloud function to create and charge a Stripe Customer. In Chapter 13, I showed you how to use a cloud function to pay with Apple Pay. All three methods call functions of “createStripeCustomer,” “chargeCustomer,” and “chargeToken,” respectively, in a JavaScript file with a name of “main.js” that you have written and hosted on Parse. The three functions take a dictionary input to execute and return either a string if successful or an NSError object if any error occurs. In this chapter, I will show you how you can implement these three JavaScript functions. In addition, you will learn how to use Mailgun to send an order confirmation once Stripe has successfully charged a user’s credit card.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Electronic Supplementary Material
Below is the link to the electronic supplementary material.
Rights and permissions
Copyright information
© 2015 Liangjun Jiang
About this chapter
Cite this chapter
Jiang, L. (2015). Charge and E-Mail. In: iOS eCommerce App Development with Parse. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1317-9_14
Download citation
DOI: https://doi.org/10.1007/978-1-4842-1317-9_14
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-1318-6
Online ISBN: 978-1-4842-1317-9
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)