Alipay

Alipay is one of the leading 3rd party service payment provider in China. With more than 450M+ active users, your merchants can accept Alipay wallets by selecting it as payment method and scanning the customer's code with your device camera.

When an Alipay transaction is triggered, you don't have to worry about integrating any scanning functionalities. It's already included in the PayButton!




In order to accept Alipay as alternative payment method, first set Card, WalletAlipay or both as payment method configuration in self.mpos.Ui.configuration.paymentOptions. Then create MPTransactionParameters and provide them to createTransactionViewController:

 // 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];

In order to generate custom receipts, please make sure you are familiar with our receipt functionality.

Alipay is one of the leading 3rd party service payment provider in China. With more than 450M+ active users, your merchants can accept Alipay wallets by selecting it as payment method and scanning the customer's code with your device camera.

When an Alipay transaction is triggered, you don't have to worry about integrating any scanning functionalities. It's already included in the PayButton!




In order to accept Alipay as alternative payment method, first set Card, WalletAlipay or both as payment method configuration in .setPaymentMethods(). Then proceed to create TransactionParameters and provide them to createTransactionIntent:

// Card and Alipay transactions
MposUi.getInitializedInstance().getConfiguration().setPaymentMethods(EnumSet.of(PaymentMethod.CARD, PaymentMethod.WALLET_ALIPAY));

// Alipay only transactions
MposUi.getInitializedInstance().getConfiguration().setPaymentMethods(EnumSet.of(PaymentMethod.WALLET_ALIPAY));

TransactionParameters params = new TransactionParameters.Builder()
                .charge(new BigDecimal(amount), Currency.EUR)
                .build();

Intent intent = MposUi.getInitializedInstance().createTransactionIntent(params, processParameters);
        		startActivityForResult(intent, MposUi.REQUEST_CODE_PAYMENT);

In order to generate custom receipts, please make sure you are familiar with our receipt functionality.

Can we help you?

If you cannot find your answer, contact us and we'll get in touch with you soon.

© Copyright 2017 Payworks GmbH. Legal.