PayPalCommerceDelegate
There are currently two cases where you might want to set the PayPalCommerceDelegate:- If you present the store modally, and you would like to be notified when the store is dismissed by the user. Then after you configure the client, call:
- Objective-C
[PayPalCommerce setDelegate:self];- Objective-C
-(void)paypalCommerceWillDismissWithTransitionDuration:(NSTimeInterval)transitionDuration;
-(void)paypalCommerceDidDismiss;- If you present the store within a tab bar controller or other such embedded system, and you have custom buttons to trigger purchases, then you’re responsible for displaying the store. After you configure the client, call:
- Objective-C
[PayPalCommerce setDelegate:self];- Objective-C
-(void)paypalCommerceShouldBeVisible;selectedViewController.