Skip to content
Code-Schnipsel Gruppen Projekte
Commit 34bedd82 erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

fix: send correct Order identification for customer and internal use

Übergeordneter 2511f667
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
...@@ -92,8 +92,8 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -92,8 +92,8 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
$Order = OrderHandler::getInstance()->getOrderByHash($hash); $Order = OrderHandler::getInstance()->getOrderByHash($hash);
} catch (\Exception $Exception) { } catch (\Exception $Exception) {
QUI\System\Log::addError( QUI\System\Log::addError(
'Amazon Pay :: Cannot check if payment process for Order #' . $hash . ' is successful' 'Amazon Pay :: Cannot check if payment process for Order #'.$hash.' is successful'
. ' -> ' . $Exception->getMessage() .' -> '.$Exception->getMessage()
); );
return false; return false;
...@@ -138,15 +138,15 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -138,15 +138,15 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
$amazonCaptureId = $Order->getPaymentDataEntry(self::ATTR_AMAZON_CAPTURE_ID); $amazonCaptureId = $Order->getPaymentDataEntry(self::ATTR_AMAZON_CAPTURE_ID);
$Response = $AmazonPay->getCaptureDetails(array( $Response = $AmazonPay->getCaptureDetails([
'amazon_capture_id' => $amazonCaptureId 'amazon_capture_id' => $amazonCaptureId
)); ]);
try { try {
$response = $this->getResponseData($Response); $response = $this->getResponseData($Response);
} catch (AmazonPayException $Exception) { } catch (AmazonPayException $Exception) {
$Order->addHistory( $Order->addHistory(
'Amazon Pay :: An error occurred while trying to validate the Capture -> ' . $Exception->getMessage() 'Amazon Pay :: An error occurred while trying to validate the Capture -> '.$Exception->getMessage()
); );
$Order->update(QUI::getUsers()->getSystemUser()); $Order->update(QUI::getUsers()->getSystemUser());
...@@ -165,8 +165,8 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -165,8 +165,8 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
if ($actualSum < $targetSum) { if ($actualSum < $targetSum) {
$Order->addHistory( $Order->addHistory(
'Amazon Pay :: The amount that was captured from Amazon was less than the' 'Amazon Pay :: The amount that was captured from Amazon was less than the'
. ' total sum of the order. Total sum: ' . $targetSum . ' ' . $targetCurrencyCode .' total sum of the order. Total sum: '.$targetSum.' '.$targetCurrencyCode
. ' | Actual sum captured by Amazon: ' . $actualSum . ' ' . $actualCurrencyCode .' | Actual sum captured by Amazon: '.$actualSum.' '.$actualCurrencyCode
); );
$Order->update(QUI::getUsers()->getSystemUser()); $Order->update(QUI::getUsers()->getSystemUser());
...@@ -223,7 +223,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -223,7 +223,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
); );
$Engine = QUI::getTemplateManager()->getEngine(); $Engine = QUI::getTemplateManager()->getEngine();
$Step->setContent($Engine->fetch(dirname(__FILE__) . '/PaymentDisplay.Header.html')); $Step->setContent($Engine->fetch(dirname(__FILE__).'/PaymentDisplay.Header.html'));
return $Control->create(); return $Control->create();
} }
...@@ -259,9 +259,9 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -259,9 +259,9 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
$orderReferenceId = $Order->getPaymentDataEntry(self::ATTR_AMAZON_ORDER_REFERENCE_ID); $orderReferenceId = $Order->getPaymentDataEntry(self::ATTR_AMAZON_ORDER_REFERENCE_ID);
$Response = $AmazonPay->confirmOrderReference(array( $Response = $AmazonPay->confirmOrderReference([
'amazon_order_reference_id' => $orderReferenceId 'amazon_order_reference_id' => $orderReferenceId
)); ]);
$this->getResponseData($Response); // check response data $this->getResponseData($Response); // check response data
...@@ -273,12 +273,13 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -273,12 +273,13 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
'Amazon Pay :: Setting details of the Order to Amazon Pay API' 'Amazon Pay :: Setting details of the Order to Amazon Pay API'
); );
$Response = $AmazonPay->setOrderReferenceDetails(array( $Response = $AmazonPay->setOrderReferenceDetails([
'amazon_order_reference_id' => $orderReferenceId, 'amazon_order_reference_id' => $orderReferenceId,
'amount' => $PriceCalculation->getSum()->precision(2)->get(), 'amount' => $PriceCalculation->getSum()->precision(2)->get(),
'currency_code' => $Order->getCurrency()->getCode(), 'currency_code' => $Order->getCurrency()->getCode(),
'seller_order_id' => $Order->getId() 'seller_order_id' => $Order->getPrefixedId(),
)); 'custom_information' => 'Order Hash: '.$Order->getHash()
]);
$response = $this->getResponseData($Response); $response = $this->getResponseData($Response);
$orderReferenceDetails = $response['SetOrderReferenceDetailsResult']['OrderReferenceDetails']; $orderReferenceDetails = $response['SetOrderReferenceDetailsResult']['OrderReferenceDetails'];
...@@ -286,20 +287,20 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -286,20 +287,20 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
if (isset($orderReferenceDetails['Constraints']['Constraint']['ConstraintID'])) { if (isset($orderReferenceDetails['Constraints']['Constraint']['ConstraintID'])) {
$Order->addHistory( $Order->addHistory(
'Amazon Pay :: An error occurred while setting the details of the Order: "' 'Amazon Pay :: An error occurred while setting the details of the Order: "'
. $orderReferenceDetails['Constraints']['Constraint']['ConstraintID'] . '""' .$orderReferenceDetails['Constraints']['Constraint']['ConstraintID'].'""'
); );
$this->throwAmazonPayException( $this->throwAmazonPayException(
$orderReferenceDetails['Constraints']['Constraint']['ConstraintID'], $orderReferenceDetails['Constraints']['Constraint']['ConstraintID'],
array( [
'reRenderWallet' => 1 'reRenderWallet' => 1
) ]
); );
} }
$AmazonPay->confirmOrderReference(array( $AmazonPay->confirmOrderReference([
'amazon_order_reference_id' => $orderReferenceId 'amazon_order_reference_id' => $orderReferenceId
)); ]);
$Order->setPaymentData(self::ATTR_ORDER_REFERENCE_SET, true); $Order->setPaymentData(self::ATTR_ORDER_REFERENCE_SET, true);
$Order->update(QUI::getUsers()->getSystemUser()); $Order->update(QUI::getUsers()->getSystemUser());
...@@ -309,13 +310,13 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -309,13 +310,13 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
$authorizationReferenceId = $this->getNewAuthorizationReferenceId($Order); $authorizationReferenceId = $this->getNewAuthorizationReferenceId($Order);
$Response = $AmazonPay->authorize(array( $Response = $AmazonPay->authorize([
'amazon_order_reference_id' => $orderReferenceId, 'amazon_order_reference_id' => $orderReferenceId,
'authorization_amount' => $PriceCalculation->getSum()->precision(2)->get(), 'authorization_amount' => $PriceCalculation->getSum()->precision(2)->get(),
'currency_code' => $Order->getCurrency()->getCode(), 'currency_code' => $Order->getCurrency()->getCode(),
'authorization_reference_id' => $authorizationReferenceId, 'authorization_reference_id' => $authorizationReferenceId,
'transaction_timeout' => 0 // get authorization status synchronously 'transaction_timeout' => 0 // get authorization status synchronously
)); ]);
$response = $this->getResponseData($Response); $response = $this->getResponseData($Response);
...@@ -353,56 +354,56 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -353,56 +354,56 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
case 'InvalidPaymentMethod': case 'InvalidPaymentMethod':
$Order->addHistory( $Order->addHistory(
'Amazon Pay :: Authorization was DECLINED. User has to choose another payment method.' 'Amazon Pay :: Authorization was DECLINED. User has to choose another payment method.'
. ' ReasonCode: "' . $reason . '"' .' ReasonCode: "'.$reason.'"'
); );
$Order->setPaymentData(self::ATTR_RECONFIRM_ORDER, true); $Order->setPaymentData(self::ATTR_RECONFIRM_ORDER, true);
$Order->update(QUI::getUsers()->getSystemUser()); $Order->update(QUI::getUsers()->getSystemUser());
$this->throwAmazonPayException($reason, array( $this->throwAmazonPayException($reason, [
'reRenderWallet' => 1 'reRenderWallet' => 1
)); ]);
break; break;
case 'TransactionTimedOut': case 'TransactionTimedOut':
$Order->addHistory( $Order->addHistory(
'Amazon Pay :: Authorization was DECLINED. User has to choose another payment method.' 'Amazon Pay :: Authorization was DECLINED. User has to choose another payment method.'
. ' ReasonCode: "' . $reason . '"' .' ReasonCode: "'.$reason.'"'
); );
$AmazonPay->cancelOrderReference(array( $AmazonPay->cancelOrderReference([
'amazon_order_reference_id' => $orderReferenceId, 'amazon_order_reference_id' => $orderReferenceId,
'cancelation_reason' => 'Order #' . $Order->getHash() . ' could not be authorized :: TransactionTimedOut' 'cancelation_reason' => 'Order #'.$Order->getHash().' could not be authorized :: TransactionTimedOut'
)); ]);
$Order->setPaymentData(self::ATTR_ORDER_REFERENCE_SET, false); $Order->setPaymentData(self::ATTR_ORDER_REFERENCE_SET, false);
$Order->update(QUI::getUsers()->getSystemUser()); $Order->update(QUI::getUsers()->getSystemUser());
$this->throwAmazonPayException($reason, array( $this->throwAmazonPayException($reason, [
'reRenderWallet' => 1, 'reRenderWallet' => 1,
'orderCancelled' => 1 'orderCancelled' => 1
)); ]);
break; break;
default: default:
$Order->addHistory( $Order->addHistory(
'Amazon Pay :: Authorization was DECLINED. OrderReference has to be closed. Cannot use Amazon Pay for this Order.' 'Amazon Pay :: Authorization was DECLINED. OrderReference has to be closed. Cannot use Amazon Pay for this Order.'
. ' ReasonCode: "' . $reason . '"' .' ReasonCode: "'.$reason.'"'
); );
$Response = $AmazonPay->getOrderReferenceDetails(array( $Response = $AmazonPay->getOrderReferenceDetails([
'amazon_order_reference_id' => $orderReferenceId 'amazon_order_reference_id' => $orderReferenceId
)); ]);
$response = $Response->toArray(); $response = $Response->toArray();
$orderReferenceDetails = $response['GetOrderReferenceDetailsResult']['OrderReferenceDetails']; $orderReferenceDetails = $response['GetOrderReferenceDetailsResult']['OrderReferenceDetails'];
$orderReferenceStatus = $orderReferenceDetails['OrderReferenceStatus']['State']; $orderReferenceStatus = $orderReferenceDetails['OrderReferenceStatus']['State'];
if ($orderReferenceStatus === 'Open') { if ($orderReferenceStatus === 'Open') {
$AmazonPay->cancelOrderReference(array( $AmazonPay->cancelOrderReference([
'amazon_order_reference_id' => $orderReferenceId, 'amazon_order_reference_id' => $orderReferenceId,
'cancelation_reason' => 'Order #' . $Order->getHash() . ' could not be authorized' 'cancelation_reason' => 'Order #'.$Order->getHash().' could not be authorized'
)); ]);
$Order->setPaymentData(self::ATTR_AMAZON_ORDER_REFERENCE_ID, false); $Order->setPaymentData(self::ATTR_AMAZON_ORDER_REFERENCE_ID, false);
} }
...@@ -419,8 +420,8 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -419,8 +420,8 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
$reason = $status['ReasonCode']; $reason = $status['ReasonCode'];
$Order->addHistory( $Order->addHistory(
'Amazon Pay :: Authorization cannot be used because it is in state "' . $state . '".' 'Amazon Pay :: Authorization cannot be used because it is in state "'.$state.'".'
. ' ReasonCode: "' . $reason . '"' .' ReasonCode: "'.$reason.'"'
); );
$this->throwAmazonPayException($reason); $this->throwAmazonPayException($reason);
...@@ -454,13 +455,13 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -454,13 +455,13 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
'Amazon Pay :: Capture failed because the Order has no AmazonOrderReferenceId' 'Amazon Pay :: Capture failed because the Order has no AmazonOrderReferenceId'
); );
throw new AmazonPayException(array( throw new AmazonPayException([
'quiqqer/payment-amazon', 'quiqqer/payment-amazon',
'exception.Payment.capture.not_authorized', 'exception.Payment.capture.not_authorized',
array( [
'orderHash' => $Order->getHash() 'orderHash' => $Order->getHash()
) ]
)); ]);
} }
try { try {
...@@ -470,16 +471,16 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -470,16 +471,16 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
'Amazon Pay :: Capture failed because the Order has no OPEN Authorization' 'Amazon Pay :: Capture failed because the Order has no OPEN Authorization'
); );
throw new AmazonPayException(array( throw new AmazonPayException([
'quiqqer/payment-amazon', 'quiqqer/payment-amazon',
'exception.Payment.capture.not_authorized', 'exception.Payment.capture.not_authorized',
array( [
'orderHash' => $Order->getHash() 'orderHash' => $Order->getHash()
) ]
)); ]);
} catch (\Exception $Exception) { } catch (\Exception $Exception) {
$Order->addHistory( $Order->addHistory(
'Amazon Pay :: Capture failed because of an error: ' . $Exception->getMessage() 'Amazon Pay :: Capture failed because of an error: '.$Exception->getMessage()
); );
QUI\System\Log::writeException($Exception); QUI\System\Log::writeException($Exception);
...@@ -490,7 +491,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -490,7 +491,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
$sum = $PriceCalculation->getSum()->precision(2)->get(); $sum = $PriceCalculation->getSum()->precision(2)->get();
$captureReferenceId = $this->getNewCaptureReferenceId($Order); $captureReferenceId = $this->getNewCaptureReferenceId($Order);
$Response = $AmazonPay->capture(array( $Response = $AmazonPay->capture([
'amazon_authorization_id' => $Order->getPaymentDataEntry(self::ATTR_AMAZON_AUTHORIZATION_ID), 'amazon_authorization_id' => $Order->getPaymentDataEntry(self::ATTR_AMAZON_AUTHORIZATION_ID),
'capture_amount' => $sum, 'capture_amount' => $sum,
'currency_code' => $Order->getCurrency()->getCode(), 'currency_code' => $Order->getCurrency()->getCode(),
...@@ -498,11 +499,11 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -498,11 +499,11 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
'seller_capture_note' => $this->getLocale()->get( 'seller_capture_note' => $this->getLocale()->get(
'quiqqer/payment-amazon', 'quiqqer/payment-amazon',
'payment.capture.seller_capture_note', 'payment.capture.seller_capture_note',
array( [
'orderId' => $Order->getId() 'orderId' => $Order->getId()
) ]
) )
)); ]);
$response = $this->getResponseData($Response); $response = $this->getResponseData($Response);
...@@ -522,7 +523,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -522,7 +523,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
switch ($state) { switch ($state) {
case 'Completed': case 'Completed':
$Order->addHistory( $Order->addHistory(
'Amazon Pay :: Capture is COMPLETED -> ' . $sum . ' ' . $Order->getCurrency()->getCode() 'Amazon Pay :: Capture is COMPLETED -> '.$sum.' '.$Order->getCurrency()->getCode()
); );
$Order->setPaymentData(self::ATTR_ORDER_CAPTURED, true); $Order->setPaymentData(self::ATTR_ORDER_CAPTURED, true);
...@@ -545,8 +546,8 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -545,8 +546,8 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
$reason = $status['ReasonCode']; $reason = $status['ReasonCode'];
$Order->addHistory( $Order->addHistory(
'Amazon Pay :: Capture operation failed with state "' . $state . '".' 'Amazon Pay :: Capture operation failed with state "'.$state.'".'
. ' ReasonCode: "' . $reason . '"' .' ReasonCode: "'.$reason.'"'
); );
// @todo Change order status to "problems with Amazon Payment" // @todo Change order status to "problems with Amazon Payment"
...@@ -568,10 +569,10 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -568,10 +569,10 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
$AmazonPay = $this->getAmazonPayClient(); $AmazonPay = $this->getAmazonPayClient();
$orderReferenceId = $Order->getPaymentDataEntry(self::ATTR_AMAZON_ORDER_REFERENCE_ID); $orderReferenceId = $Order->getPaymentDataEntry(self::ATTR_AMAZON_ORDER_REFERENCE_ID);
$AmazonPay->closeOrderReference(array( $AmazonPay->closeOrderReference([
'amazon_order_reference_id' => $orderReferenceId, 'amazon_order_reference_id' => $orderReferenceId,
'closure_reason' => $reason ?: 'Order #' . $Order->getHash() . ' completed' 'closure_reason' => $reason ?: 'Order #'.$Order->getHash().' completed'
)); ]);
} }
/** /**
...@@ -601,7 +602,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -601,7 +602,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
* *
* @throws AmazonPayException * @throws AmazonPayException
*/ */
protected function throwAmazonPayException($errorCode, $exceptionAttributes = array()) protected function throwAmazonPayException($errorCode, $exceptionAttributes = [])
{ {
$L = $this->getLocale(); $L = $this->getLocale();
$lg = 'quiqqer/payment-amazon'; $lg = 'quiqqer/payment-amazon';
...@@ -614,7 +615,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -614,7 +615,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
case 'AmazonRejected': case 'AmazonRejected':
case 'ProcessingFailure': case 'ProcessingFailure':
case 'MaxCapturesProcessed': case 'MaxCapturesProcessed':
$msg = $L->get($lg, 'payment.error_msg.' . $errorCode); $msg = $L->get($lg, 'payment.error_msg.'.$errorCode);
break; break;
} }
...@@ -633,7 +634,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -633,7 +634,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
*/ */
protected function getNewAuthorizationReferenceId(AbstractOrder $Order) protected function getNewAuthorizationReferenceId(AbstractOrder $Order)
{ {
return mb_substr('a_' . $Order->getId() . '_' . uniqid(), 0, 32); return mb_substr('a_'.$Order->getId().'_'.uniqid(), 0, 32);
} }
/** /**
...@@ -648,7 +649,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -648,7 +649,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
$authorizationReferenceIds = $Order->getPaymentDataEntry(self::ATTR_AUTHORIZATION_REFERENCE_IDS); $authorizationReferenceIds = $Order->getPaymentDataEntry(self::ATTR_AUTHORIZATION_REFERENCE_IDS);
if (empty($authorizationReferenceIds)) { if (empty($authorizationReferenceIds)) {
$authorizationReferenceIds = array(); $authorizationReferenceIds = [];
} }
$authorizationReferenceIds[] = $authorizationReferenceId; $authorizationReferenceIds[] = $authorizationReferenceId;
...@@ -666,7 +667,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -666,7 +667,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
*/ */
protected function getNewCaptureReferenceId(AbstractOrder $Order) protected function getNewCaptureReferenceId(AbstractOrder $Order)
{ {
return mb_substr('c_' . $Order->getId() . '_' . uniqid(), 0, 32); return mb_substr('c_'.$Order->getId().'_'.uniqid(), 0, 32);
} }
/** /**
...@@ -681,7 +682,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -681,7 +682,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
$captureReferenceIds = $Order->getPaymentDataEntry(self::ATTR_CAPTURE_REFERENCE_IDS); $captureReferenceIds = $Order->getPaymentDataEntry(self::ATTR_CAPTURE_REFERENCE_IDS);
if (empty($captureReferenceIds)) { if (empty($captureReferenceIds)) {
$captureReferenceIds = array(); $captureReferenceIds = [];
} }
$captureReferenceIds[] = $captureReferenceId; $captureReferenceIds[] = $captureReferenceId;
...@@ -701,14 +702,14 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment ...@@ -701,14 +702,14 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment
return $this->AmazonPayClient; return $this->AmazonPayClient;
} }
$this->AmazonPayClient = new AmazonPayClient(array( $this->AmazonPayClient = new AmazonPayClient([
'merchant_id' => Provider::getApiSetting('merchant_id'), 'merchant_id' => Provider::getApiSetting('merchant_id'),
'access_key' => Provider::getApiSetting('access_key'), 'access_key' => Provider::getApiSetting('access_key'),
'secret_key' => Provider::getApiSetting('secret_key'), 'secret_key' => Provider::getApiSetting('secret_key'),
'client_id' => Provider::getApiSetting('client_id'), 'client_id' => Provider::getApiSetting('client_id'),
'sandbox' => boolval(Provider::getApiSetting('sandbox')), 'sandbox' => boolval(Provider::getApiSetting('sandbox')),
'region' => Provider::getApiSetting('region') 'region' => Provider::getApiSetting('region')
)); ]);
return $this->AmazonPayClient; return $this->AmazonPayClient;
} }
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren