ios - Diaplay an activity while updating Braintree nuance to server -
i following following tutorial https://developers.braintreepayments.com/guides/drop-in/ios/v4
in finding issues when post payment nuance server. drop in ui remains after enter card details. , options still enabled while payment nuance in progress user can select option
here code
btdropinrequest *request = [[btdropinrequest alloc] init]; btdropincontroller *dropin = [[btdropincontroller alloc] initwithauthorization:client_tok request:request handler:^(btdropincontroller * _nonnull controller, btdropinresult * _nullable result, nserror * _nullable error) { if (error != nil) { nslog(@"error"); } else if (result.cancelled) { nslog(@"cancelled"); [self dismissviewcontrolleranimated:yes completion:null]; } else { [self performselector:@selector(dismiss_bt) withobject:nil afterdelay:0.0]; [self postnoncetoserver:result.paymentmethod.nonce]; } }]; [self presentviewcontroller:dropin animated:yes completion:nil];
in above image want hide braintree drop in after enter card detail / paypal
thanks in advance
Comments
Post a Comment