// Card and Alipay transactions self.mposUi.configuration.paymentOptions = MPUMposUiConfigurationPaymentMethodCard | MPUMposUiConfigurationPaymentMethodWalletAlipay; // Alipay only transactions self.mposUi.configuration.paymentOptions = MPUMposUiConfigurationPaymentMethodWalletAlipay; MPTransactionParameters * txParams = [MPTransactionParameters chargeWithAmount:[NSDecimalNumber decimalNumberWithString:@"10"] currency:MPCurrencyEUR optionals:^(id optionals) {/* set optionals */}]; UIViewController *vc = [self.mposUi createTransactionViewControllerWithTransactionParameters:txParams completed:completed]; UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc]; [self presentViewController:nav animated:YES completion:nil];
// Card and Alipay transactions MposUi.getInitializedInstance().getConfiguration().setPaymentOptions(EnumSet.of(MposUiConfiguration.PaymentOption.CARD, MposUiConfiguration.PaymentOption.WALLET_ALIPAY)); // Alipay only transactions MposUi.getInitializedInstance().getConfiguration().setPaymentOptions(EnumSet.of(MposUiConfiguration.PaymentOption.WALLET_ALIPAY)); TransactionParameters params = new TransactionParameters.Builder() .charge(new BigDecimal(amount), Currency.EUR) .build(); Intent intent = MposUi.getInitializedInstance().createTransactionIntent(params); startActivityForResult(intent, MposUi.REQUEST_CODE_PAYMENT);