mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
33 lines
945 B
Objective-C
Executable File
33 lines
945 B
Objective-C
Executable File
//
|
|
// STPAPIClient+ApplePay.h
|
|
// Stripe
|
|
//
|
|
// Created by Jack Flintermann on 12/19/14.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <PassKit/PassKit.h>
|
|
|
|
#import <Stripe/STPAPIClient.h>
|
|
|
|
#define FAUXPAS_IGNORED_IN_FILE(...)
|
|
FAUXPAS_IGNORED_IN_FILE(APIAvailability)
|
|
|
|
/**
|
|
* STPAPIClient extensions to create Stripe tokens from Apple Pay PKPayment objects.
|
|
*/
|
|
@interface STPAPIClient (ApplePay)
|
|
|
|
/**
|
|
* Converts a PKPayment object into a Stripe token using the Stripe API.
|
|
*
|
|
* @param payment The user's encrypted payment information as returned from a PKPaymentAuthorizationViewController. Cannot be nil.
|
|
* @param completion The callback to run with the returned Stripe token (and any errors that may have occurred).
|
|
*/
|
|
- (void)createTokenWithPayment:(nonnull PKPayment *)payment
|
|
completion:(nonnull STPTokenCompletionBlock)completion NS_AVAILABLE_IOS(8_0);
|
|
|
|
@end
|
|
|
|
void linkSTPAPIClientApplePayCategory(void);
|