{"title":"MobilePay for API only","category":"default","creationDate":1776961628,"content":"<p>You can add MobilePay to your existing integration. The following instructions show only what you must add to your integration specifically for MobilePay.<\/p>\n<p>If an instruction on this page corresponds with a step in the main integration guide, it includes a link to corresponding step of the main integration guide.<\/p>\n<h2>Requirements<\/h2>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Requirement<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><strong>Integration type<\/strong><\/td>\n<td style=\"text-align: left;\">Make sure that you have an existing <a href=\"\/pt\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%20only\">API-only integration<\/a>.<\/td>\n<td> <\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Action handling<\/strong><\/td>\n<td style=\"text-align: left;\">Make sure that your existing integration is set up to <a href=\"\/pt\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%20only#additional-action\">handle the additional action<\/a>. <br> <code>action.type<\/code>: redirect.<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Setup steps<\/strong><\/td>\n<td style=\"text-align: left;\"> Before you begin, <a href=\"\/pt\/payment-methods\/add-payment-methods\">add MobilePay in your Customer Area<\/a>. <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>How it works<\/h2>\n<ol>\n<li>The shopper selects MobilePay as the payment method.<\/li>\n<li>The shopper enters their details in the <a href=\"#build-your-payment-form\">payment form that you build<\/a>.<\/li>\n<li>When you make the payment request, you <a href=\"#additional-parameters-payments\">include additional information about the items that the shopper intends to purchase<\/a>.<\/li>\n<li>You fulfill the order by sending items to the shopper.<\/li>\n<\/ol>\n<h2 id=\"build-your-payment-form\">Build your payment form<\/h2>\n<p>Include MobilePay in the list of available payment methods. You do not need to collect any information from the shopper in your payment form.<\/p>\n<div class=\"notices green\">\n<p>You can <a href=\"\/pt\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%2Bonly&amp;version=71#downloading-logos\">download the logo for MobilePay<\/a> to use in your form.<\/p>\n<\/div>\n<h2>Get MobilePay as an available payment method<\/h2>\n<p>When you make the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/paymentMethods<\/a> to <a href=\"\/pt\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%20only#get-available-payment-methods\">get available payment methods<\/a>, specify the following so that MobilePay is included in the response.<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Values<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods#request-countryCode\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">countryCode<\/a><\/td>\n<td><span translate=\"no\"><strong><strong>DK<\/strong>, <strong>FI<\/strong><\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods#request-amount-currency\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">amount.currency<\/a><\/td>\n<td><span translate=\"no\"><strong><strong>DKK<\/strong>, <strong>EUR<\/strong><\/strong><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Example request for available payment methods'\" :id=\"'payment-methods-request'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/checkout-test.adyen.com\\\/v72\\\/paymentMethods \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'idempotency-key: YOUR_IDEMPOTENCY_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-X POST\\n-d '{\\n   \\&quot;merchantAccount\\&quot;: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n   \\&quot;countryCode\\&quot;: \\&quot;FI\\&quot;,\\n   \\&quot;amount\\&quot;: {\\n      \\&quot;currency\\&quot;: \\&quot;EUR\\&quot;,\\n\\t  \\&quot;value\\&quot;: 1000\\n   },\\n   \\&quot;shopperLocale\\&quot;: \\&quot;fi-FI\\&quot;\\n}'&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Example response with MobilePay available'\" :id=\"'payment-methods-response'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"paymentMethods\\\": [\\n        {\\n            \\\"name\\\": \\\"MobilePay\\\",\\n            \\\"type\\\": \\\"mobilepay\\\"\\n        }\\n    ]\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2 id=\"additional-parameters-payments\">Add additional parameters to your \/payments request<\/h2>\n<p>You do not need to add any parameters when you <a href=\"\/pt\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%20only#make-a-payment\">make a payment<\/a>, unless you make a payment to generate a token for future payouts to MobilePay wallets.<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"''\" :id=\"'mobilepay-payments'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/checkout-test.adyen.com\\\/v68\\\/payments \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-d '{\\n  \\&quot;merchantAccount\\&quot;:\\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  \\&quot;reference\\&quot;:\\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  \\&quot;amount\\&quot;:{\\n    \\&quot;currency\\&quot;:\\&quot;\\&quot;,\\n    \\&quot;value\\&quot;:1000\\n  },\\n  \\&quot;paymentMethod\\&quot;:{\\n    \\&quot;type\\&quot;:\\&quot;mobilepay\\&quot;\\n  },\\n  \\&quot;returnUrl\\&quot;:\\&quot;\\&quot;,\\n  \\&quot;{hint:Required when creating a payout token. Optional for normal payment - include for a better shopper experience.}telephoneNumber{\\\/hint}\\&quot;: \\&quot;+4512345678\\&quot;,\\n  \\&quot;{hint:Required when creating a payout token.}shopperReference{\\\/hint}\\&quot;: \\&quot;YOUR_SHOPPER_REFERENCE\\&quot;,\\n  \\&quot;{hint:Required when creating a payout token.}enablePayOut{\\\/hint}\\&quot;: \\&quot;true\\&quot;\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Set ADYEN_API_KEY with the API key from the Customer Area.\\n\\\/\\\/ Change to Environment.LIVE and add the Live URL prefix when you are ready to accept live payments.\\n    Client client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n    Checkout checkout = new Checkout(client);\\n\\n    PaymentsRequest paymentsRequest = new PaymentsRequest();\\n\\n    String merchantAccount = \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;;\\n    paymentsRequest.setMerchantAccount(merchantAccount);\\n\\n    Amount amount = new Amount();\\n    amount.setCurrency(\\&quot;\\&quot;);\\n    amount.setValue(1000L);\\n    paymentsRequest.setAmount(amount);\\n\\n    DefaultPaymentMethodDetails paymentMethodDetails = new DefaultPaymentMethodDetails();\\n    paymentMethodDetails.setType(\\&quot;mobilepay\\&quot;);\\n    paymentsRequest.setPaymentMethod(paymentMethodDetails);\\n\\n    paymentsRequest.setTelephoneNumber(\\&quot;+4512345678\\&quot;);\\n    paymentsRequest.setReference(\\&quot;YOUR_ORDER_NUMBER\\&quot;);\\n    paymentsRequest.setReturnUrl(\\&quot;\\&quot;);\\n\\n    PaymentsResponse paymentsResponse = checkout.payments(paymentsRequest);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Set your X-API-KEY with the API key from the Customer Area.\\n$client = new \\\\Adyen\\\\Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$service = new \\\\Adyen\\\\Service\\\\Checkout($client);\\n\\n$params = array(\\n  \\&quot;amount\\&quot; =&gt; array(\\n    \\&quot;currency\\&quot; =&gt; \\&quot;\\&quot;,\\n    \\&quot;value\\&quot; =&gt; 1000\\n  ),\\n  \\&quot;reference\\&quot; =&gt; \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  \\&quot;paymentMethod\\&quot; =&gt; array(\\n    \\&quot;type\\&quot; =&gt; \\&quot;mobilepay\\&quot;\\n  ),\\n    \\&quot;telephoneNumber\\&quot; =&gt; \\&quot;+4512345678\\&quot;,\\n  \\&quot;returnUrl\\&quot; =&gt; \\&quot;\\&quot;,\\n  \\&quot;merchantAccount\\&quot; =&gt; \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;\\n);\\n$result = $service-&gt;payments($params);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Set your X-API-KEY with the API key from the Customer Area.\\nvar client = new Client (\\&quot;ADYEN_API_KEY\\&quot;, Environment.Test);\\nvar checkout = new Checkout(client);\\n\\nvar amount = new Adyen.Model.Checkout.Amount(\\&quot;\\&quot;, 1000);\\nvar details = new Adyen.Model.Checkout.DefaultPaymentMethodDetails{\\n  Type = \\&quot;mobilepay\\&quot;\\n};\\nvar paymentsRequest = new Adyen.Model.Checkout.PaymentRequest\\n{\\n  Reference = \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  Amount = amount,\\n  TelephoneNumber = \\&quot;+4512345678\\&quot;,\\n  ReturnUrl = @\\&quot;\\&quot;,\\n  MerchantAccount = \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  PaymentMethod = details\\n};\\n\\nvar paymentResponse = checkout.Payments(paymentsRequest);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.1.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, CheckoutAPI } = require('@adyen\\\/api-library');\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;YOUR_X_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object\\nconst paymentRequest = {\\n  merchantAccount: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  reference: \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  amount: {\\n    currency: \\&quot;\\&quot;,\\n    value: 1000\\n  },\\n  paymentMethod: {\\n    type: \\&quot;mobilepay\\&quot;\\n  },\\n  telephoneNumber: \\&quot;+4512345678\\&quot;,\\n  returnUrl: \\&quot;\\&quot;\\n}\\n\\n\\\/\\\/ Make the request\\nconst checkoutAPI = new CheckoutAPI(client);\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\&quot;UUID\\&quot; });&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v12.0.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;YOUR_X_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\njson_request = {\\n  \\&quot;merchantAccount\\&quot;: \\&quot;YOUR_MERCHANT_ACCOUNT\\&quot;,\\n  \\&quot;reference\\&quot;: \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  \\&quot;amount\\&quot;: {\\n    \\&quot;currency\\&quot;: \\&quot;\\&quot;,\\n    \\&quot;value\\&quot;: 1000\\n  },\\n  \\&quot;paymentMethod\\&quot;: {\\n    \\&quot;type\\&quot;: \\&quot;mobilepay\\&quot;\\n  },\\n  \\&quot;telephoneNumber\\&quot;: \\&quot;+4512345678\\&quot;,\\n  \\&quot;returnUrl\\&quot;: \\&quot;\\&quot;\\n}\\n\\nresult = adyen.checkout.payments_api.payments(request=json_request, idempotency_key=\\&quot;UUID\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v9.1.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'YOUR_X_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\nrequest_body = {\\n  :merchantAccount =&gt; 'YOUR_MERCHANT_ACCOUNT',\\n  :reference =&gt; 'YOUR_ORDER_NUMBER',\\n  :amount =&gt; {\\n    :currency =&gt; '',\\n    :value =&gt; 1000\\n  },\\n  :paymentMethod =&gt; {\\n    :type =&gt; 'mobilepay'\\n  },\\n  :telephoneNumber =&gt; '+4512345678',\\n  :returnUrl =&gt; ''\\n}\\n\\nresult = adyen.checkout.payments_api.payments(request_body, headers: { 'Idempotency-Key' =&gt; 'UUID' })&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h3>Payment with payout token creation<\/h3>\n<p>To make a MobilePay payment and generate a token for future <a href=\"\/pt\/payment-methods\/mobilepay\/#payouts\">payouts to MobilePay wallets<\/a>:<\/p>\n<ol>\n<li>\n<p>Make sure that you have <a href=\"\/pt\/payment-methods\/mobilepay#payouts\">set up the recurring lifecycle webhook<\/a>.<\/p>\n<\/li>\n<li>\n<p>Make a  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/payments<\/a> request as usual, but include the parameters to create a token:<\/p>\n<ul>\n<li><code>telephoneNumber<\/code><\/li>\n<li><code>shopperReference<\/code><\/li>\n<li><code>enablePayout<\/code> set to <strong>true<\/strong><\/li>\n<\/ul>\n<\/li>\n<li>\n<p>When you receive the recurring lifecycle webhook for the payment, save the <code>storedPaymentMethodId<\/code> (the token) for your customer, identified by the <code>shopperReference<\/code>.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Webhook containing the payout token'\" :id=\"''\" :code-data='[{\"language\":\"bash\",\"tabTitle\":\"\",\"content\":\"{\\n  \\\"createdAt\\\" : \\\"2025-01-29T20:50:37+01:00\\\",\\n  \\\"environment\\\" : \\\"test\\\",\\n  \\\"type\\\" : \\\"recurring.token.created\\\",\\n  \\\"data\\\" : {\\n      \\\"merchantAccount\\\" : \\\"YOUR_MERCHANT_ACCOUNT\\\",\\n      \\\"operation\\\" : \\\"created\\\",\\n      \\\"shopperReference\\\" : \\\"YOUR_SHOPPER_REFERENCE\\\",\\n      \\\"storedPaymentMethodId\\\" : \\\"NFX5L4DL4J2ZTL65\\\",\\n      \\\"type\\\" : \\\"visa_mobilepay\\\"\\n  },\\n  \\\"eventId\\\" : \\\"JF89C8JSHVTFWR82\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>When you want to <a href=\"\/pt\/payouts\/payout-service\/pay-out-to-cards\/card-payout-request\/?tab=one-off-request-token_2\">make a payout<\/a> to the shopper's MobilePay wallet, send a POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/transfers\/latest\/post\/transfers\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/transfers<\/a> request specifying the payout token in the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/transfers\/latest\/post\/transfers#request-counterparty-card-cardIdentification\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">counterparty.card.cardIdentification<\/a> field.<\/p>\n<\/li>\n<\/ol>\n<h2>Test and go live<\/h2>\n<p>MobilePay cannot be tested in the test environment. You must make penny test (low-amount) payments in the live environment.<\/p>\n<ol>\n<li>\n<p>Submit a request for MobilePay in your <a href=\"https:\/\/ca-live.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">live Customer Area<\/a>.<\/p>\n<\/li>\n<li>\n<p>After MobilePay is added to your live Customer Area, do the following for each test payment:<\/p>\n<ol>\n<li>Make a MobilePay payment for a low amount.<\/li>\n<li>Get the <a href=\"\/pt\/development-resources\/webhooks\/webhook-types\/#default-event-codes\"><strong>AUTHORISATION<\/strong> webhook<\/a> on your server. It includes the status of the payment.<\/li>\n<li>In your live Customer Area, go to <strong>Transactions<\/strong> &gt; <strong>Payments<\/strong> to see the status of the payment.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h3>Test payouts to MobilePay wallets<\/h3>\n<div class=\"notices green\">\n<p>The MobilePay payout feature is experimental, and supported only with the <code>\/payments<\/code> endpoint.<\/p>\n<\/div>\n<p>Do the following to test MobilePay payouts:<\/p>\n<ol>\n<li>\n<p>Get a test app following the instructions in the <a href=\"https:\/\/developer.vippsmobilepay.com\/docs\/knowledge-base\/test-environment\/#app-installation\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">VippsMobilePay documentation<\/a>. When prompted for a phone number and NIN (national identity number), use one of the following sets:<\/p>\n<ul>\n<li>\n<p>NIN 0407640091<br \/>\nPhone +45 22105837<\/p>\n<\/li>\n<li>\n<p>NIN 0702860109<br \/>\nPhone +45 34817154<\/p>\n<\/li>\n<li>\n<p>NIN 0111500196<br \/>\nPhone +45 73920021<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Test your integration end-to-end:<\/p>\n<ul>\n<li>Make a test payment that generates a payout token, using the Vipps MobilePay test app to simulate the customer side.<\/li>\n<li>Check that you receive and process the recurring lifecycle webhook.<\/li>\n<li>Make a  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/transfers\/latest\/overview\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Transfers API<\/a> request using the token that you receive in the webhook.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2 id=\"see-also\">See also<\/h2>\n<div class=\"see-also-links output-inline\" id=\"see-also\">\n<ul><li><a href=\"\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%20only\"\n                        target=\"_self\"\n                        >\n                    API-only integration guide\n                <\/a><\/li><\/ul><\/div>\n","url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/mobilepay\/api-only","articleFields":{"description":"Add MobilePay to your API-only integration.","never_cache_twig":true,"parameters":{"flow":"Advanced","integration_guide_url":"\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&integration=API%20only","payment_method":"MobilePay","payment_method_type":"mobilepay","payment_method_type_capitalized":"Mobilepay","tx_variant":"mobilepay","tx_variant_capitalized":"Mobilepay","country_codes":"<strong>DK<\/strong>, <strong>FI<\/strong>","currency_codes":"<strong>DKK<\/strong>, <strong>EUR<\/strong>","additional_api":"false","api_version":"none","action_type":"redirect","pm_directory":"mobilepay","contact":"false"}},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/mobilepay\/api-only","title":"MobilePay for API only","content":"You can add MobilePay to your existing integration. The following instructions show only what you must add to your integration specifically for MobilePay.\nIf an instruction on this page corresponds with a step in the main integration guide, it includes a link to corresponding step of the main integration guide.\nRequirements\n\n\n\nRequirement\nDescription\n\n\n\n\nIntegration type\nMake sure that you have an existing API-only integration.\n \n\n\nAction handling\nMake sure that your existing integration is set up to handle the additional action.  action.type: redirect.\n\n\n\nSetup steps\n Before you begin, add MobilePay in your Customer Area. \n\n\n\nHow it works\n\nThe shopper selects MobilePay as the payment method.\nThe shopper enters their details in the payment form that you build.\nWhen you make the payment request, you include additional information about the items that the shopper intends to purchase.\nYou fulfill the order by sending items to the shopper.\n\nBuild your payment form\nInclude MobilePay in the list of available payment methods. You do not need to collect any information from the shopper in your payment form.\n\nYou can download the logo for MobilePay to use in your form.\n\nGet MobilePay as an available payment method\nWhen you make the  \/paymentMethods to get available payment methods, specify the following so that MobilePay is included in the response.\n\n\n\nParameter\nValues\n\n\n\n\n countryCode\nDK, FI\n\n\n amount.currency\nDKK, EUR\n\n\n\n\n    \n\n\n    \n\nAdd additional parameters to your \/payments request\nYou do not need to add any parameters when you make a payment, unless you make a payment to generate a token for future payouts to MobilePay wallets.\n\n    \n\nPayment with payout token creation\nTo make a MobilePay payment and generate a token for future payouts to MobilePay wallets:\n\n\nMake sure that you have set up the recurring lifecycle webhook.\n\n\nMake a  \/payments request as usual, but include the parameters to create a token:\n\ntelephoneNumber\nshopperReference\nenablePayout set to true\n\n\n\nWhen you receive the recurring lifecycle webhook for the payment, save the storedPaymentMethodId (the token) for your customer, identified by the shopperReference.\n\n\n\n\n\nWhen you want to make a payout to the shopper's MobilePay wallet, send a POST  \/transfers request specifying the payout token in the  counterparty.card.cardIdentification field.\n\n\nTest and go live\nMobilePay cannot be tested in the test environment. You must make penny test (low-amount) payments in the live environment.\n\n\nSubmit a request for MobilePay in your live Customer Area.\n\n\nAfter MobilePay is added to your live Customer Area, do the following for each test payment:\n\nMake a MobilePay payment for a low amount.\nGet the AUTHORISATION webhook on your server. It includes the status of the payment.\nIn your live Customer Area, go to Transactions &gt; Payments to see the status of the payment.\n\n\n\nTest payouts to MobilePay wallets\n\nThe MobilePay payout feature is experimental, and supported only with the \/payments endpoint.\n\nDo the following to test MobilePay payouts:\n\n\nGet a test app following the instructions in the VippsMobilePay documentation. When prompted for a phone number and NIN (national identity number), use one of the following sets:\n\n\nNIN 0407640091\nPhone +45 22105837\n\n\nNIN 0702860109\nPhone +45 34817154\n\n\nNIN 0111500196\nPhone +45 73920021\n\n\n\n\nTest your integration end-to-end:\n\nMake a test payment that generates a payout token, using the Vipps MobilePay test app to simulate the customer side.\nCheck that you receive and process the recurring lifecycle webhook.\nMake a  Transfers API request using the token that you receive in the webhook.\n\n\n\nSee also\n\n\n                    API-only integration guide\n                \n","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Payment methods","lvl2":"MobilePay","lvl3":"MobilePay for API only"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/payment-methods","lvl2":"https:\/\/docs.adyen.com\/pt\/payment-methods\/mobilepay","lvl3":"\/pt\/payment-methods\/mobilepay\/api-only"},"levels":4,"category":"Payment method","category_color":"green","tags":["MobilePay"]},"articleFiles":{"mobilepay-payments.js":"<p alt=\"\">mobilepay-payments.js<\/p>","payment-methods-response.json":"<p alt=\"\">payment-methods-response.json<\/p>"}}
