PaylineByMonext / payline-php-sdk

Payline PHP SDK
http://www.payline.com
GNU Lesser General Public License v3.0
28 stars 33 forks source link

[\Payline\PaylineSDK::doReAuthorization] 'order' parameter is mandatory #60

Closed Omegadela closed 1 year ago

Omegadela commented 4 years ago
TypeError: Argument 1 passed to Payline\PaylineSDK::order() must be of the type array, null given, called in /var/www/html/vendor/monext/payline-sdk/src/Payline/PaylineSDK.php on line 1472

According to Monext documentation, the 'order' details are not mandatory for a doReAuthorizationRequest

Calling the service with an empty 'order' array returns :

ERROR. Code 02305 : Invalid field format : Order Amount : Must be numeric(12), ex : 15078

Is there a workaround for reAuthorizing a transaction without order details ?

thomasmonext commented 1 year ago

Résolu