adyen encrypted credit card data

南笙酒味 提交于 2021-02-08 10:21:14

问题


I'm trying to code a script on a sneakers website that supports adyen checkout. Basically, it encrypts my credit card data in this way and doesn't make me pay.

payload_cc = {
...
"dwfrm_billing_paymentMethod": "CREDIT_CARD",
"dwfrm_billing_creditCardFields_cardType": "Mastercard",
"dwfrm_billing_creditCardFields_adyenEncryptedData":"adyenjs_0_1_25$ibmnmdt8wdc5...", 
"dwfrm_billing_creditCardFields_cardNumber":"************last4digits"
"dwfrm_billing_creditCardFields_expirationMonth": "07",
"dwfrm_billing_creditCardFields_expirationYear": "2024"
}

This is my actual requests for the payment.

checkout_page = s.get("https://www.slamjam.com/en_IT/checkout-begin?stage=payment#payment",headers=headers)

checkout_card = s.post("https://www.slamjam.com/on/demandware.store/Sites-slamjam-Site/en_IT/CheckoutServices-SubmitPayment",headers=headers, data=payload_cc)

place_order = s.get("https://www.slamjam.com/en_IT/checkout-begin?stage=placeOrder#placeOrder",headers=headers)

The last 2 requests don't go through because adyen encrypts the card number and generates a sort of token. What can I do? Does it exist like an adyen library that can help me?


回答1:


You shouldn't have to build out the connection to Adyen yourself. Adyen provides a cartridge for Demandware / Salesforce commerce cloud. It supports card processing out of the box.

You can download the cartridge from the Adyen github page. This cartridge supports SFRA version 4.x.x and SiteGenesis JS-Controllers.



来源:https://stackoverflow.com/questions/58664449/adyen-encrypted-credit-card-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!