1

I want to add payment via PayPal in my iPhone app. When the customer orders for sticker labels by paying via PayPal, the Order will be received and Company will then send the Sticker to the Customer.

I just installed Alamofire pod in my app.

  • Is it possible to use Alamofire for PayPal payment?
  • Which HTTP request is necessary for PayPal payment?
  • Or which framework is best for PayPal payment in iOS?
  • Is it best practice to use Alamofire?

Hope some experts have a good option!

Bista
  • 7,869
  • 3
  • 27
  • 55
G A
  • 67
  • 2
  • 13

1 Answers1

2
  1. Is it possible to use Alamofire for PayPal payment?

A: Yes, it is possible.

  1. Which HTTP request is necessary for PayPal payment?

A: As a reference Alamofire HTTP requests fails and https://github.com/contentful-labs/Wunderschnell/blob/master/Phone%20App/PayPalClient.swift both show the Alamofire.request(.Post) methods using Alamofire.

  1. Or which framework is best for PayPal payment in iOS?

A: Paypal's SDK is likely considered best practice: https://github.com/paypal/PayPal-iOS-SDK

  1. Is it best practice to use Alamofire?

A: See answer to Question 3 (both work, just make sure you feel comfortable from a security perspective making your own post request via Alamofire)

Community
  • 1
  • 1
Ian Moses
  • 611
  • 4
  • 7
  • I choose the best way of using PayPal-iOS-SDK. It's works good... – G A Oct 13 '16 at 19:26
  • Now I need to authenticate the actual payment for a customer in my app. Could you provide any guideline for authenticating paypal http request with this SDK.... Thanks – G A Oct 14 '16 at 16:28
  • https://developer.paypal.com/docs/authentication-security/ – Ian Moses Oct 14 '16 at 19:20
  • There are several ways to go about it, depends on what works best for your app. – Ian Moses Oct 14 '16 at 19:21