When offering this payment method, note that African shoppers expect to see the email and phone number of your business on the payment form. Shoppers will use your contact information in case they need to refund or cancel their payment.
For Cellulant, the value must be between 3 to 15 characters. Some MNOs restrict using longer values. If the reference is longer than 15 characters, it will be removed but the payment is not rejected.
If you already have the shopper's name, email, and phone number, you can provide them in the /sessions request to improve the shopper experience. We pass this information to Cellulant so your shoppers won't have to fill these in later when they're redirected to the payment form.
For Cellulant, the value must be between 3 to 15 characters. Some MNOs restrict using longer values. If the reference is longer than 15 characters, it will be removed but the payment is not rejected.
Specify an issuer to skip the MNO selection step and switch the shopper directly to the page of the issuer. For example, ORANGE_CI.
If you already have the shopper's name, email, and phone number, you can provide them in the /payments request to improve the shopper experience. We pass this information to Cellulant so your shoppers won't have to fill these in later when they're redirected to the payment form.
# Set your X-API-KEY with the API key from the Customer Area.
adyen = Adyen::Client.new
adyen.env = :test
adyen.api_key = "YOUR_X-API-KEY"
response = adyen.checkout.payments({
:merchantAccount => "YOUR_MERCHANT_ACCOUNT",
:reference => "YOUR_ORDER_NUMBER",
:paymentMethod => {
:type => "cellulant"
},
:amount => {
:currency => "KES",
:value => 1000
},
:countryCode => "KE",
:shopperEmail => "shopper@example.com",
:shopperName => {
:firstName => "Simon",
:lastName => "Hopper"
},
:telephoneNumber => "+254712123456",
:returnUrl => "https://your-company.com/checkout?shopperOrder=12xy.."
})
// Create a Client to establish a connection to our services with your API Key from the Customer Area.
Client client = new Client("YOUR_X-API-KEY", Environment.TEST);
Checkout checkout = new Checkout(client);
PaymentsRequest paymentsRequest = new PaymentsRequest();
paymentsRequest.setMerchantAccount("YOUR_MERCHANT_ACCOUNT");
paymentsRequest.setReference("YOUR_ORDER_REFERENCE");
PaymentMethodDetails paymentMethodDetails = new DefaultPaymentMethodDetails();
paymentMethodDetails.setType("cellulant");
paymentsRequest.setPaymentMethod(paymentMethodDetails);
Amount amount = new Amount();
amount.setCurrency("KES");
amount.setValue(1000L);
paymentsRequest.setAmount(amount);
paymentsRequest.setCountryCode("KE");
paymentsRequest.setTelephoneNumber("+254712123456");
paymentsRequest.setShopperEmail("shopper@example.com");
Name shopperDetails = new Name();
shopperDetails.setFirstName("Simon");
shopperDetails.setLastName("Hopper");
paymentsRequest.setShopperName(shopperDetails);
paymentsRequest.setReturnUrl("https://your-company.com/checkout?shopperOrder=12xy..");
PaymentsResponse paymentsResponse = checkout.payments(paymentsRequest);
// Set your X-API-KEY with the API key from the Customer Area.
$client = new \Adyen\Client();
$client->setXApiKey("YOUR_X-API-KEY");
$service = new \Adyen\Service\Checkout($client);
$params = [
"merchantAccount" => "YOUR_MERCHANT_ACCOUNT",
"reference" => "YOUR_ORDER_REFERENCE",
"paymentMethod" => [
"type" => "cellulant"
],
"amount" => [
"currency" => "KES",
"value" => "1000"
],
"countryCode" => "KE",
"telephoneNumber" => "+254712123456",
"shopperEmail" => "shopper@example.com",
"shopperName" => [
"firstName" => "Simon",
"lastName" => "Hopper"
],
"returnUrl" => "https://your-company.com/checkout?shopperOrder=12xy.."
);
$result = $service->payments($params);
#Set your X-API-KEY with the API key from the Customer Area.
adyen = Adyen.Adyen()
adyen.client.xapikey = 'YOUR_X-API-KEY'
result = adyen.checkout.payments({
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"reference": "YOUR_ORDER_REFERENCE",
"paymentMethod": {
"type": "cellulant"
},
"amount": {
"currency": "KES",
"value": "1000"
},
"countryCode": "KE",
"telephoneNumber": "+254712123456",
"shopperEmail": "shopper@example.com",
"shopperName": {
"firstName": "Simon",
"lastName": "Hopper"
},
"returnUrl": "https://your-company.com/checkout?shopperOrder=12xy.."
})
// Set your X-API-KEY with the API key from the Customer Area.
var client = new Client ("YOUR_X-API-KEY", Environment.Test);
var checkout = new Checkout(client);
var paymentRequest = new Adyen.Model.Checkout.PaymentRequest
{
MerchantAccount = "YOUR_MERCHANT_ACCOUNT",
Reference = "YOUR_ORDER_REFERENCE",
PaymentMethod = new DefaultPaymentMethodDetails { Type = "cellulant" },
Amount = new Model.Checkout.Amount(Currency: "KES", Value: 1000),
CountryCode = "KE",
TelephoneNumber = "+254712123456",
ShopperEmail = "shopper@example.com",
ShopperName = new Model.Checkout.Name
{
FirstName = "Simon",
LastName = "Hopper"
},
ReturnUrl = "https://your-company.com/checkout?shopperOrder=12xy.."
};
var paymentResponse = checkout.Payments(paymentsRequest);
// Set your X-API-KEY with the API key from the Customer Area.
const {Client, Config, CheckoutAPI} = require('@adyen/api-library');
const config = new Config();
// Set your X-API-KEY with the API key from the Customer Area.
config.apiKey = '[API_KEY]';
config.merchantAccount = '[YOUR_MERCHANT_ACCOUNT]';
const client = new Client({ config });
client.setEnvironment("TEST");
const checkout = new CheckoutAPI(client);
checkout.payments({
merchantAccount: "YOUR_MERCHANT_ACCOUNT",
reference: "YOUR_ORDER_REFERENCE",
paymentMethod: {
type: "cellulant"
},
amount: {
currency: "KES",
value: "1000"
},
countryCode: "KE",
telephoneNumber: "+254712123456",
shopperEmail: "shopper@example.com",
shopperName: {
firstName: "Simon",
lastName: "Hopper"
},
returnUrl: "https://your-company.com/checkout?shopperOrder=12xy.."
}).then(res => res);