PPOTCheckoutRequest_Internal.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // PPOTCheckoutRequest_Internal.h
  3. // PayPalOneTouch
  4. //
  5. // Copyright © 2015 PayPal, Inc. All rights reserved.
  6. //
  7. #import "PPOTRequest.h"
  8. @interface PPOTCheckoutRequest ()
  9. /**
  10. Factory method. Non-empty values for all parameters MUST be provided.
  11. @param approvalURL Client has already created a payment on PayPal server; this is the resulting HATEOS ApprovalURL
  12. @param clientID The app's Client ID, as obtained from developer.paypal.com
  13. @param environment PayPalEnvironmentProduction, PayPalEnvironmentMock, or PayPalEnvironmentSandbox;
  14. or else a stage indicated as `base-url:port`
  15. @param callbackURLScheme The URL scheme to be used for returning to this app, following an app-switch
  16. */
  17. + (nullable instancetype)requestWithApprovalURL:(nonnull NSURL *)approvalURL
  18. clientID:(nonnull NSString *)clientID
  19. environment:(nonnull NSString *)environment
  20. callbackURLScheme:(nonnull NSString *)callbackURLScheme;
  21. /**
  22. Factory method. Only pairingId can be nil.
  23. @param approvalURL Client has already created a payment on PayPal server; this is the resulting HATEOS ApprovalURL
  24. @param pairingId The pairingId for the risk component
  25. @param clientID The app's Client ID, as obtained from developer.paypal.com
  26. @param environment PayPalEnvironmentProduction, PayPalEnvironmentMock, or PayPalEnvironmentSandbox;
  27. or else a stage indicated as `base-url:port`
  28. @param callbackURLScheme The URL scheme to be used for returning to this app, following an app-switch
  29. */
  30. + (nullable instancetype)requestWithApprovalURL:(nonnull NSURL *)approvalURL
  31. pairingId:(nullable NSString *)pairingId
  32. clientID:(nonnull NSString *)clientID
  33. environment:(nonnull NSString *)environment
  34. callbackURLScheme:(nonnull NSString *)callbackURLScheme;
  35. @end