Skip to main content
  • 689 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Electronic Supplementary Material

Below is the link to the electronic supplementary material.

978-1-4842-1318-6_14_SourceCode.zip (zip 2 kb)

Rights and permissions

Reprints 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

Publish with us

Policies and ethics