| 12345678910111213141516171819202122232425262728293031323334353637 |
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- @class BTClientMetadata;
- @interface BTVenmoAppSwitchRequestURL : NSObject
- /**
- The base app switch URL for Venmo. Does not include specific parameters.
- */
- + (NSURL *)baseAppSwitchURL;
- /**
- Create an app switch URL
- @param merchantID The merchant ID
- @param accessToken The access token used by the venmo app to tokenize on behalf of the merchant
- @param scheme The return URL scheme, e.g. "com.yourcompany.Your-App.payments"
- @param bundleName The bundle display name for the current app
- @param environment The environment, e.g. "production" or "sandbox"
- @param paymentContextID The Venmo payment context ID (optional)
- @param metadata Additional braintree metadata
- @return The resulting URL, or `nil` if any of the required parameters are `nil`.
- */
- + (nullable NSURL *)appSwitchURLForMerchantID:(NSString *)merchantID
- accessToken:(NSString *)accessToken
- returnURLScheme:(NSString *)scheme
- bundleDisplayName:(NSString *)bundleName
- environment:(NSString *)environment
- paymentContextID:(NSString * _Nullable)paymentContextID
- metadata:(BTClientMetadata *)metadata;
- @end
- NS_ASSUME_NONNULL_END
|