Authorize
Authorize Request
FX opt-in may be applied at time of Authorization. See the examples below for how you may facilitate this payment.
Credit or Debit Card
The code below is a sample request to authorize a payment using a credit or debit card.
<?xml version="1.0" encoding="UTF-8"?>
<authorize-payment account="100691" client-id="10069">
<transaction type-id="10091" id="1935288">
<card type-id="8">
<amount country-id="603">85556</amount>
<card-holder-name>CellPointMobie</card-holder-name>
<card-number>4788250000028291</card-number>
<expiry>11/18</expiry>
</card>
<!— if user has opted for payment with currency conversion -- (opt-in scenario) -->
<foreign-exchange-info>
<id>123</id>
<conversation-rate>1.3456</conversation-rate>
<service-type-id>11</service-type-id>
<sale-currencyid>840</sale-currencyid>
<sale-amount>42778</sale-amount>
</foreign-exchange-info>
<!— if user has not opted for payment with currency conversion (opt-out scenario) -->
<foreign-exchange-info>
<id>{{cfxid}}</id>
<service-type-id>12</service-type-id>
</foreign-exchange-info>
</transaction>
<client-info language="da" version="1.28" platform="iOS/9.0">
<mobile operator-id="10000" country-id="200">[phone number]</mobile>
<email>[email id]</email>
<device-id>B4D54A3A4F5E4E1595F7A3BF16249F6D14555303</device-id>
</client-info>
</authorize-payment>
Updated 6 months ago