Closed paulappelbe closed 2 years ago
Hello @paulappelbe,
Indeed this is a known situation. In order to use Vault with a non-card payment method we still had to use card tokens. Magento doesn't support Vault tokenisation for payment methods with initialize command. See #822.
Still, we're investigating an alternative solution, I've added this issue to our internal tracker.
Best, Ángel
Hello, Do you know when this issue will be dealt with ?
Thanks, Guillaume Dalaudier
Hello @gudal,
It is still in our backlog, as soon as it is addressed we'll update this issue.
Hello,
Any news on this issue ?
Thanks, Guillaume Dalaudier
Hello,
Any news on this issue ?
Thanks, Guillaume Dalaudier
Hey @gudal apologies for the delay. Unfortunately still in our backlog but we've preliminary planned the following:
Since the payment info block is showing the data from the vault payment method provider (in this case CC vault):
We're still having discussions if this is the best way to approach it, and we'll update this issue with progress made ASAP.
Hi, Regarding your code, it seems that you use same payment method ("adyen_cc_vault") for all vault payments (in our case CC and HPP). So all vault payment are marked as "CC" (credit card). Also you are recording all vault_payment_token as adyen_cc. I add a fix by creating "adyen_hpp_vault" payment method which doesn't exist and changing value of payment_method_code for HPP payent with "adyen_hpp_vault" value. I don't make any changes for frontend part because we don't use it. I'm waiting for your correction to replace this fix.
Regards,
@mverroyedata thanks for your feedback. Indeed we thought of that solution as well, but HPP is a payment method that requires an initialize
command and Magento doesn't support initialize + vault. Here we rolled back those changes #822. If you're not using Magento's frontend maybe you already have a workaround for this and it works for you.
Yes HPP requires an initialize but not HPP_vault wich works like CC_VAULT used at now (with token). So you can create an HPP_VAULT method with a specific configuration and set "can_initialize" to 0. I have created "adyen_hpp_vault" based on virtualtype AdyenPaymentHppVaultFacade with code "adyen_hpp_vault" and specific config AdyenPaymentHppVaultConfig, specific valueHandlerPool , specific vaultProvider, ... And I still use adyen_hpp (with initialize) to new sepa payment. Hope it can help.
@mverroyedata interesting! Which vault provider did you use? https://github.com/Adyen/adyen-magento2/pull/822/files#diff-093a1e43a11122404c853506b7ca4f661e18dd4f6557ec3089cad8ceae34a606L62
If it's possible for you, a PR with this recommendation to our develop branch would be greatly appreciated.
Hi,
I use « AdyenPaymentHppVaultAdapter ». I don’t make lot of changes :
Etc/config.xml :
Etc/di.xml :
I changed \Adyen\Payment\Model\Ui\AdyenHppConfigProvider by adding
const CC_VAULT_CODE = 'adyen_hpp_vault';
and on getConfig methode
$config = [ 'payment' => [ self::CODE => [ 'vaultCode' => self::CC_VAULT_CODE, 'isActive' => true, 'redirectUrl' => $this->urlBuilder->getUrl( 'adyen/process/redirect', ['_secure' => $this->getRequest()->isSecure()] ) ] ] ];
Finally, on \Adyen\Payment\Model\Cron in methode _processNotification you make this test
if ($_paymentCode == 'adyen_hpp' && $this->configHelper->isStoreAlternativePaymentMethodEnabled()) {
then you set payment code as CC code ‘adyen_cc’
$paymentTokenAlternativePaymentMethod->setCustomerId($customerId)->setGatewayToken($this->_pspReference)->setPaymentMethodCode(AdyenCcConfigProvider::CODE)
I changed it by ‘adyen_hpp_vault’
$paymentTokenAlternativePaymentMethod->setCustomerId($customerId)->setGatewayToken($this->_pspReference)->setPaymentMethodCode(AdyenHppConfigProvider::CC_VAULT_CODE)
Regards,
@.***D727CD.F981A0C0]
De : Ángel Campos @.> Envoyé : vendredi 2 avril 2021 09:30 À : Adyen/adyen-magento2 @.> Cc : Maxime VERROYE @.>; Mention @.> Objet : Re: [Adyen/adyen-magento2] [PW-3384] SEPA direct debit saved in vault - 2nd use, incorrect information saved (#900)
@mverroyedatahttps://github.com/mverroyedata interesting! Which vault provider did you use? https://github.com/Adyen/adyen-magento2/pull/822/files#diff-093a1e43a11122404c853506b7ca4f661e18dd4f6557ec3089cad8ceae34a606L62
If it's possible for you, a PR with this recommendation to our develop branch would be greatly appreciated.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Adyen/adyen-magento2/issues/900#issuecomment-812387525, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATPIUT2T2GWVHWKDEN46QLLTGVW67ANCNFSM4ULTOK2A.
Issue was fixed on #1563.
Describe the bug When a SEPA direct debit is saved to the vault : the first payment is fine, but when a payment uses the vault (so second payment onwards) the data saved to the order is wrong, it treats it « half » like a credit card
To Reproduce Steps to reproduce the behavior:
Expected behavior
Actual behavior