Skip to main content
GET
/
v2.01
/
{ClientId}
/
payins
/
card
/
web
/
{PayInId}
/
extended
<?php 

require_once 'vendor/autoload.php';

use MangoPay\MangoPayApi;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\Libraries\Exception as MGPException;

$api = new MangoPayApi();

$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'tmp/';

try {
    $payInId = '200015365';

    $response = $api->PayIns->GetExtendedCardView($payInId);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}  
{
   "Id": "150523529",
   "PaymentType": "CARD",
   "ExecutionType": "WEB",
   "ExpirationDate": "0323",
   "Alias": "497010XXXXXX6588",
   "CardType": "CB_VISA_MASTERCARD",
   "Country": "FRA",
   "Fingerprint": "586d14a7ee9244dd8a7a51bb79aafc24"
}  
Caution – Endpoint temporarily unavailableDue to ongoing improvements to Mangopay’s card processing technology, this endpoint temporarily returns a 500 Internal Server Error.Mangopay is working on reinstating support for this endpoint. For any queries, please contact Support via the Dashboard.

Path parameters

PayInId
string
required
The unique identifier of the pay-in.

Responses

Id
string
Max length: 128 characters (see data formats for details)The unique identifier of the object.
PaymentType
string
Returned values: CARD, DIRECT_DEBIT, PREAUTHORIZED, BANK_WIREThe type of pay-in.
ExecutionType
string
Returned values: WEB, DIRECT, EXTERNAL_INSTRUCTIONThe type of execution for the pay-in.
ExpirationDate
string
Format: “MMYY”The expiration date of the card.
Alias
string
The card number, partially obfuscated.
CardType
string
Returned values: CB_VISA_MASTERCARD, AMEX, MAESTRO, BCMCDefault value: CB_VISA_MASTERCARDThe type of the card. If not supplied, the default value will be taken into account.
Country
string
Format: ISO-3166-1 alpha-3 three-letter country code (e.g., “FRA”)The country of the card (which is the same as the country of the issuer).
Fingerprint
string
The unique representation of the card number. This string can be used to track the card behavior while keeping the card information confidential.
{
   "Id": "150523529",
   "PaymentType": "CARD",
   "ExecutionType": "WEB",
   "ExpirationDate": "0323",
   "Alias": "497010XXXXXX6588",
   "CardType": "CB_VISA_MASTERCARD",
   "Country": "FRA",
   "Fingerprint": "586d14a7ee9244dd8a7a51bb79aafc24"
}  
<?php 

require_once 'vendor/autoload.php';

use MangoPay\MangoPayApi;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\Libraries\Exception as MGPException;

$api = new MangoPayApi();

$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'tmp/';

try {
    $payInId = '200015365';

    $response = $api->PayIns->GetExtendedCardView($payInId);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}  
I