Comments (2)
Hi @gaurav1992,
Sorry for the later reply. If you are using CSE the encrypted data needs to be passed into the additionalData field as card.encrypted.json" see below:
"additionalData": {
"card.encrypted.json": "THE ENCRYPTED DATA"
}
Regards,
Rik
Adyen
from adyen-php-api-library.
Hi wanted to integrate adyen using omnipay. getting this kind of output error (Please supply paymentDetails) ::
Array
(
[status] => 422
[errorCode] => 000
[message] => Please supply paymentDetails
[errorType] => validation
[pspReference] => 881600324956070K
)
Input passed as:
Array ( [additionalData] => Array ( [card] => Array ( [number] => 4111111111111111 [expiryYear] => 2030 [expiryMonth] => 03 [holderName] => Pradeep Sawant ) [billingAddress] => Array ( [city] => Columbia [country] => NL [houseNumberOrName] => 88 [street] => [postalCode] => 412 [stateOrProvince] => MD ) [executeThreeD] => false ) [amount] => Array ( [value] => 150000 [currency] => EUR ) [reference] => tr388384242_12456 [merchantAccount] => Developer914ECOM ) My code: echo "Gateway Name: ".$gateway->getName(); $card = new CreditCard(array( 'firstName' => 'Pradeep', 'lastName' => 'Sawant', 'number' => '4111111111111111', 'expiryMonth' => '03', 'expiryYear' => '2030', 'cvv' => '737', 'billingAddress1' => '88', 'billingCountry' => 'NL', 'billingCity' => 'Columbia', 'billingPostcode' => '412', 'billingState' => 'MD', // 'shippingCountry' => 'GB', // 'shippingAddress1' => '88', // 'shippingCity' => 'Columbia', // 'shippingPostcode' => '412', )); //echo ""; print_r($card); $response = $gateway->authorize( [ 'amount' => '1500', 'currency' => 'EUR', 'transactionId' => 'tr388384242_12456', 'card' => $card, 'merchantAccount' => 'Developer914ECOM', //'description' => 'Test Purchase', //'returnUrl' => 'https://example.co.uk/sagepay-complete', ] )->send(); echo ""; print_r($response->getData()); die;from adyen-php-api-library.
Related Issues (20)
- Delete stored payment returns as error HOT 1
- Getting curl timeout on success calls with runTenderSync() on send POS terminal a payment HOT 20
- Please reopen issue #473
- API response not correctly handled HOT 2
- composer require adyen/php-api-library pulling a different version of code than the specified version in the doc HOT 3
- Missing option to get result of the payment session? HOT 2
- CheckoutStateDataValidator does not allow RequestedTestAcquirerResponseCode for testing purposes HOT 2
- CheckoutStateDataValidator removes origin parameter? HOT 4
- Attempted to call an undefined method named "isValidWebhookHMAC" of class "Adyen\Util\HmacSignature"." at Adyen/Service/WebhookReceiver.php line 39 HOT 1
- Fatal error on "Disable stored payment details" API call HOT 1
- Replacement for deprecated RiskManagement service HOT 1
- RecurringApi::deleteTokenForStoredPaymentDetails call fails even though the request is correctly performed and successfully finished HOT 4
- Error using splitCardFundingSources in paymentMethods HOT 3
- Error on PaymentRequest with v16.1.0 HOT 3
- Requesting session API returns failure ( version 17.0.0) HOT 1
- Changes to CreateCheckoutSessionRequest and CreateCheckoutSessionResponse in 17.2.0 break hosted checkout HOT 2
- Checkout Api not up to date HOT 1
- Wrong parameter type in metadata functions HOT 3
- Can you make this library not suck? HOT 1
- Non-nullable billingToken issue for non-recurring PayPal payments HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adyen-php-api-library.