Skip to content

Commit

Permalink
#27 Rename request parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rinnhofer committed Nov 22, 2016
1 parent 97dcfcb commit 4ff6645
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class WirecardCEE_QPay_FrontendClient extends WirecardCEE_Stdlib_Client_ClientAb
*
* @var string
*/
const CUSTOMER_MERCHANT_CRM_ID = 'customerMerchantCrmId';
const CONSUMER_MERCHANT_CRM_ID = 'consumerMerchantCrmId';

/**
*
Expand Down Expand Up @@ -678,9 +678,9 @@ public function setMaxRetries($maxRetries)
*
* @return $this
*/
public function createCustomerMerchantCrmId($userEmail)
public function createConsumerMerchantCrmId($userEmail)
{
$this->_setField(self::CUSTOMER_MERCHANT_CRM_ID, md5($userEmail));
$this->_setField(self::CONSUMER_MERCHANT_CRM_ID, md5($userEmail));
return $this;
}

Expand Down
2 changes: 1 addition & 1 deletion Frontend/WirecardCheckoutPage/Models/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function initiatePayment($paymentType, $amount, $currency, $returnUrl, $c
->setConfirmUrl($confimUrl)
->setDisplayText($confimUrl)
->setConsumerData($this->getConsumerData($paymentType))
->createCustomerMerchantCrmId($email)
->createConsumerMerchantCrmId($email)
->setShippingProfile($shippingProfile);

if(Shopware()->WirecardCheckoutPage()->getConfig()->ENABLE_DUPLICATE_REQUEST_CHECK){
Expand Down

0 comments on commit 4ff6645

Please sign in to comment.