skip to Main Content

Paypal api – PayPal REST API returns INVALID_CURRENCY_AMOUNT_FORMAT

response-code: 400 details: name: VALIDATION_ERROR message: Invalid request - see details details: [{ "field": "transactions.amount", "issue": "Cannot construct instance of com.paypal.platform.payments.model.rest.common.Amount, >problem: INVALID_CURRENCY_AMOUNT_FORMAT" }] debug-id: 86ad5783892c3 information-link: https://developer.paypal.com/docs/api/payments/#errors package com.spring.soap.api; @Configuration public class PaypalConfig { @Value("${paypal.client.id}") private String clientId; @Value("${paypal.client.secret}")…

VIEW QUESTION

How command pool works? and How can we redirect to payment gateway? Magento 2

I'm integrating a payment gateway using gateway command pool. This is di.xml <virtualType name="AuthorizeCommand" type="MagentoPaymentGatewayCommandGatewayCommand"> <arguments> <argument name="requestBuilder" xsi:type="object">AuthorizationRequest</argument> <argument name="transferFactory" xsi:type="object">InternationalSampleGatewayHttpTransferFactory</argument> <argument name="client" xsi:type="object">InternationalSampleGatewayHttpClientClientMock</argument> </arguments> </virtualType> This is TransferFactory.php public function create(array $request) { return $this->transferBuilder ->setBody($request) ->setMethod('Curl::POST') ->setHeaders(['Content-Type'…

VIEW QUESTION
Back To Top
Search