Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web drop-in Pre-Authorize Payment cannot input card number, expiration time, or CVC form fields #2678

Open
memoryoverflow opened this issue May 10, 2024 · 4 comments
Labels

Comments

@memoryoverflow
Copy link

Here are some of my configurations and payment information:

I have confirmed the basic data:

  1. The client_key is correct;
    clientKey: test_YZ6FPZRLMJBHLM4K7Q5NZDP4LEK32J23
  2. The domain name is also correct;
    image

Drop in test address, you can directly access and use the data provided below to reproduce the problem

china link: http://aliyun.thisforyou.cn:180/#/

我是使用该接口进行创建支付信息的:v70版本 /sessions;

api request params:

{
    "amount": {
        "currency": "USD",
        "value": 0
    },
    "channel": "Web",
    "countryCode": "US",
    "expiresAt": 1715392937600,
    "merchantAccount": "MtpileLtdCOM",
    "recurringProcessingModel": "UnscheduledCardOnFile",
    "reference": "1788862112324632577",
    "returnUrl": "http://1788862112324632578",
    "shopperInteraction": "Ecommerce",
    "shopperLocale": "en-US",
    "shopperReference": "1788862112324632576",
    "splitCardFundingSources": false,
    "storePaymentMethod": true,
    "storePaymentMethodMode": "enabled",
    "threeDSAuthenticationOnly": false
}

api response:

{
    "amount": {
        "currency": "USD",
        "value": 0
    },
    "channel": "Web",
    "countryCode": "US",
    "expiresAt": 1715392937000,
    "id": "CS234B8404CEA90631",
    "merchantAccount": "MtpileLtdCOM",
    "mode": "embedded",
    "recurringProcessingModel": "UnscheduledCardOnFile",
    "reference": "1788862112324632577",
    "returnUrl": "http://1788862112324632578",
    "sessionData": "Ab02b4c0!BQABAgB06HMCZla+Fo8QHphBfIgC8/w1VNfBGrEJ6qc2+HNqtOj6NUTwByGYDb+M8Ra36TZ2bRdPE1i0sow/ac8rVnPpF8d2AOIHs8wak3CP9gxXzKj7IoVpWVwFUPILGZXE47VezOJEa/sH1ys/rdrl252b5c7eYUJlnhArXI5hc//n1FNAc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OGxtzr+CWm4IQ6fOnMZDdjDKt9b9kGYnL0eDdI6wJPmZsbLYAE40BeKisKcz1OY5E8CGJl+6HlIrYCvCLpVv09lufckBDcnTt3/e/V2XUll63uhJSmPhL4a1VtTxmbV7xWdgcRAyoAPGQd5Ai3liOu/8Zqv64XxPc2L/Oq60B+AM+EmAhs+ES/nkgoRUvG3OSazHTBMixYRZlSXC4LGiEb45rXEimiFQeS8imnd1ogU+xxS92o9vGmBqo8uh3zM4YihSI+eVQmb13VbdCru7ED1YjM+PHKeBnpCRtDP2y7z7Wpch7f0zd8Vs5aaTerkQ0qoOZ1MLtoVR6J9m7s5NP1if9UNLkLRMzNTZhn5WMJwOWktL+q5sI27+f8+zp27eSnuAjuSz72l",
    "shopperInteraction": "Ecommerce",
    "shopperLocale": "en-US",
    "shopperReference": "1788862112324632576",
    "splitCardFundingSources": false,
    "storePaymentMethod": true,
    "storePaymentMethodMode": "enabled",
    "threeDSAuthenticationOnly": false
}

Drop-in effect:

image

web console:
image

@memoryoverflow memoryoverflow added the Enhancement New feature or request label May 10, 2024
@memoryoverflow memoryoverflow changed the title web drop-in Pre-Authorize 支付无法输入卡号、过期时间、cvc表单字段 web drop-in Pre-Authorize Payment cannot input card number, expiration time, or CVC form fields May 10, 2024
@longyulongyu
Copy link
Contributor

Hi @memoryoverflow I think for the allowed origins, the protocol should be https, or http for local, you can find more information here.

@sponglord
Copy link
Contributor

sponglord commented May 15, 2024

@memoryoverflow - your issue relates to this: #1710
TL;DR http is not considered a secure context unless it is localhost (as defined here)

@memoryoverflow
Copy link
Author

Thank you for your reply. Now you can initiate payment normally. I think it should be caused by the mismatch between the client key and the domain name.

@longyulongyu
Copy link
Contributor

longyulongyu commented May 21, 2024

Thank you for your reply. Now you can initiate payment normally. I think it should be caused by the mismatch between the client key and the domain name.

@memoryoverflow good to hear that you can initiate payment normally now.
Is the issue solved by matching the client key and domain name? Did you also change the allowed origins as we mentioned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants