Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Card direct PayIn Postman Sandbow #64

Open
hadri47 opened this issue Jul 24, 2023 · 0 comments
Open

Create a Card direct PayIn Postman Sandbow #64

hadri47 opened this issue Jul 24, 2023 · 0 comments

Comments

@hadri47
Copy link

hadri47 commented Jul 24, 2023

Hi,

As part of my interview process with Mango, I'm asked to replicated API calls for the Marketplace worklow in a Sandbox environment using Mango API collection on Postman https://www.postman.com/mgp-productstars/collection/15344095-47c29023-1d0b-4f09-ae65-9054db181208

When trying to Create a Direct Card PayIN (transfering money to the e-Wallet using a Direct Card), the transaction status is PENDING. When Clicking on the link provided by SecureModeRedirect and authorize the authentification request, transaction status changes to FAILED and I receive the PSP technical error: 009199 on my dashboard.

Do you know what went wrong ? Can you help me ?

See code here :

// Don't forget to click on the link provided by SecureModeRedirectURL parameter in the response
{
"AuthorId": "198405349",
"CreditedUserId": "198405349",
"CreditedWalletId": "198405435",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 10000
},
"Fees": {
"Currency": "EUR",
"Amount": 0
},
"SecureModeReturnURL": "https://docs.mangopay.com/please-ignore",
"CardId": "198410829",
"StatementDescriptor": "Mangopay",
"Billing": {
"FirstName": "{{$randomFirstName}}",
"LastName": "{{$randomLastName}}",
"Address": {
"AddressLine1": "{{$randomStreetAddress}}",
"AddressLine2": "{{$randomStreetName}}",
"City": "Paris",
"Region": "Ile-de-France",
"PostalCode": "75001",
"Country": "FR"
}
},
"Shipping": {
"FirstName": "{{$randomFirstName}}",
"LastName": "{{$randomLastName}}",
"Address": {
"AddressLine1": "{{$randomStreetAddress}}",
"AddressLine2": "{{$randomStreetName}}",
"City": "Paris",
"Region": "Ile-de-France",
"PostalCode": "75001",
"Country": "FR"
}
},
"Tag": "Created using Mangopay API Postman Collection",
"Culture": "EN",
"IpAddress": "{{$randomIPV6}}",
"BrowserInfo": {
"AcceptHeader": "text/html, application/xhtml+xml, application/xml;q=0.9, /;q=0.8",
"JavaEnabled": true,
"Language": "FR-FR",
"ColorDepth": 4,
"ScreenHeight": 1800,
"ScreenWidth": 400,
"TimeZoneOffset": 60,
"UserAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",
"JavascriptEnabled": true
}
}

Answer here :

"Id": "198410831",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1690195315,
"AuthorId": "198405349",
"CreditedUserId": "198405349",
"DebitedFunds": {
    "Currency": "EUR",
    "Amount": 10000
},
"CreditedFunds": {
    "Currency": "EUR",
    "Amount": 10000
},
"Fees": {
    "Currency": "EUR",
    "Amount": 0
},
"Status": "CREATED",
"ResultCode": null,
"ResultMessage": null,
"ExecutionDate": null,
"Type": "PAYIN",
"Nature": "REGULAR",
"CreditedWalletId": "198405435",
"DebitedWalletId": null,
"PaymentType": "CARD",
"ExecutionType": "DIRECT",
"SecureMode": "DEFAULT",
"CardId": "198410829",
"SecureModeReturnURL": "https://docs.mangopay.com/please-ignore?transactionId=198410831",
"SecureModeRedirectURL": "https://api.sandbox.mangopay.com:443/Redirect/ACSWithValidation?token=20a25f8574cc427eb8dd53d55a52ffe8&mgpsecureid=20a25f8574cc427eb8dd53d55a52ffe8",
"SecureModeNeeded": true,
"Culture": "EN",
"SecurityInfo": {
    "AVSResult": "NO_CHECK"
},
"StatementDescriptor": "Mangopay",
"BrowserInfo": {
    "AcceptHeader": "text/html, application/xhtml+xml, application/xml;q=0.9, /;q=0.8",
    "JavaEnabled": true,
    "Language": "FR-FR",
    "ColorDepth": 4,
    "ScreenHeight": 1800,
    "ScreenWidth": 400,
    "TimeZoneOffset": 60,
    "UserAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",
    "JavascriptEnabled": true
},
"IpAddress": "e344:b49e:48b0:4df9:c0d3:bbb7:df62:4f23",
"Billing": {
    "FirstName": "Cale",
    "LastName": "Ferry",
    "Address": {
        "AddressLine1": "29853 Arnulfo Hollow",
        "AddressLine2": "Margaret Hollow",
        "City": "Paris",
        "Region": "Ile-de-France",
        "PostalCode": "75001",
        "Country": "FR"
    }
},
"Shipping": {
    "FirstName": "Rosanna",
    "LastName": "Bauch",
    "Address": {
        "AddressLine1": "09214 Toby Flats",
        "AddressLine2": "Funk Island",
        "City": "Paris",
        "Region": "Ile-de-France",
        "PostalCode": "75001",
        "Country": "FR"
    }
},
"Requested3DSVersion": null,
"Applied3DSVersion": "V2_1",
"RecurringPayinRegistrationId": null

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant