BTLocalPaymentRequestDelegate
Objective-C
@protocol BTLocalPaymentRequestDelegate
Swift
protocol BTLocalPaymentRequestDelegate
Protocol for local payment flow
-
Required delegate method which returns the payment ID before the flow starts. Use this to do any preprocessing and setup for webhooks. Use the
start()
callback to continue the flow.Declaration
Objective-C
- (void)localPaymentStarted:(nonnull BTLocalPaymentRequest *)request paymentID:(nonnull NSString *)paymentID start:(nonnull void (^)(void))start;
Swift
func localPaymentStarted(_ request: BTLocalPaymentRequest, paymentID: String, start: @escaping () -> Void)