Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

A subscription created using objective C (client) and Django (Server)

Notifications You must be signed in to change notification settings

braintreedev/sample-subscription-ios-objc-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

This repo is on a path to being archived, checkout our other resources in github.com/paypal

Using the Braintree API in Objective C & Django to process a subscription payment

This is an example of the Braintree API using the official Objective C & Python SDK's to set up a subscription.

This demo performs the following technical implementations:

  • Pulling existing plans from Braintree server
  • Creating a new customer
  • Processing a subscription

Technology

This demo uses

The sample backend is written in Python and uses:

Running the server

  • In the server folder
    • Run pip install braintree to install Braintree
    • Run python manage.py runserver to start the server

Running the mobile app (Device / Emulator)

  • In the client folder
    • Run pod install to install all dependencies.
    • Open the newly created file vzero.xcworkspace in your XCode.
    • Build the app and run it in your emulator or on your device
      • Once the app started it will try to get the client token from your backend. Ensure that your server is already running before you launch the mobile application.
    • Click on Start Payment
    • Select either of these payment methods:
      • (PayPal)
        • Fill in the following credentials:
        • Click Agree to accept future payments
      • (Credit Card) Fill in the following credentials:
        • Number: 4111 1111 1111 1111
        • Expiration date: 11/15
        • CVV: 123
    • Click on Pay
    • You will see a message that says "Subscription ID: [subscription_id]"

Useful links

About

A subscription created using objective C (client) and Django (Server)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published