在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:paypal/PayPal-iOS-SDK开源软件地址:https://github.com/paypal/PayPal-iOS-SDK开源编程语言:Objective-C 84.8%开源软件介绍:Important: PayPal Mobile SDKs are Deprecated. The APIs powering them will remain operational long enough for merchants to migrate, but the SDKs themselves will no longer be updated. Please use Braintree Direct in supported countries. In other countries, use Express Checkout and choose the Braintree SDK integration option. PayPal iOS SDKThe PayPal iOS SDK makes it easy to add PayPal payments to mobile apps. This documentation is available in Japanese: 日本語のドキュメント.
Contents
Use CasesThe SDK supports two use cases for making payments - Single Payment and Future Payments - and a third use case for obtaining information about the customer - Profile Sharing. Single PaymentReceive a one-time payment from a customer's PayPal account. This can be either (1) an immediate payment which your servers should subsequently verify, or (2) an authorization for a payment which your servers must subsequently capture, or (3) a payment for an order which your servers must subsequently authorize and capture:
Note: Direct Credit Card (DCC) payments are now deprecated in this SDK. Please use Braintree Payments, a PayPal Company, which is the easiest way to accept PayPal, credit cards, and many other payment methods. Future PaymentsYour customer logs in to PayPal just one time and consents to future payments:
Later, when that customer initiates a payment:
Profile SharingYour customer logs in to PayPal and consents to PayPal sharing information with you:
Requirements
Add the SDK to Your ProjectCocoaPods, then add these lines to your podfile:If you useplatform :ios, '7.0'
pod 'PayPal-iOS-SDK' If you don't use CocoaPods, then:
With or without CocoaPods:
CredentialsYour mobile integration requires different Your server integrations for verifying or creating payments will also require the corresponding You can obtain these PayPal API credentials by visiting the Applications page on the PayPal Developer site and logging in with your PayPal account. SandboxOnce logged in on this Applications page, you will be assigned test credentials, including Client ID, which will let you test your iOS integration against the PayPal Sandbox. While testing your app, when logging in to PayPal in the SDK's UI you should use a personal Sandbox account email and password. I.e., not your Sandbox business credentials. You can create both business and personal Sandbox accounts on the Sandbox accounts page. LiveTo obtain your live credentials, you will need to have a business account. If you don't yet have a business account, there is a link at the bottom of that same Applications page that will get you started. International SupportLocalizationsThe SDK has built-in translations for many languages and locales. See the header files for a complete list. CurrenciesThe SDK supports multiple currencies. See the REST API country and currency documentation for a complete, up-to-date list. If your app initiates a transaction with a currency that turns out to be unsupported for the user's selected payment type, then the SDK will display an error to the user and write a message to the console log. TestingDuring development and testing, set the environment to Sandbox or NoNetwork/Mock mode, to avoid moving real money around. See the header files for more information. Documentation
SupportWhen opening an issue, please include the environment (live or sandbox), SDK version, and a
Additionally, information about the types of devices (iPhone 6s Plus, iPhone 5), iOS version, and any non-standard settings would be helpful to provide. For merchant-specific issues, you should use the PayPal Merchant Technical Support site to open an issue. Please do not post your client ID or secret in an issue. UsabilityUser interface appearance and behavior is set within the library itself. For the sake of usability and user experience consistency, apps should not adjust appearance properties or attempt to modify the SDK's behavior beyond the documented methods in the provided headers. Specifically, if you are using Next StepsDepending on your use case, you can now:
ContributingPlease read our contributing guidelines prior to submitting a Pull Request. LicensePlease refer to this repo's license file. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论