-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat(core): Add visa click to pay support #7562
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
Merged
likhinbopanna
merged 17 commits into
main
from
8841-feature-add-visa-click-to-pay-support
Mar 28, 2025
Merged
feat(core): Add visa click to pay support #7562
likhinbopanna
merged 17 commits into
main
from
8841-feature-add-visa-click-to-pay-support
Mar 28, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…github.com/juspay/hyperswitch into 8841-feature-add-visa-click-to-pay-support
sai-harsha-vardhan
previously approved these changes
Mar 24, 2025
deepanshu-iiitu
previously approved these changes
Mar 24, 2025
f2968ec
SanchithHegde
previously approved these changes
Mar 26, 2025
deepanshu-iiitu
previously approved these changes
Mar 27, 2025
Contributor
deepanshu-iiitu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Connector changes look good
SanchithHegde
previously approved these changes
Mar 27, 2025
sai-harsha-vardhan
previously approved these changes
Mar 27, 2025
e0726d4
SanchithHegde
approved these changes
Mar 27, 2025
sai-harsha-vardhan
approved these changes
Mar 28, 2025
deepanshu-iiitu
approved these changes
Mar 28, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
Add visa click to pay support
Additional Changes
Adds
encypted_payloadfield toctp_service_detailsand makesprovideras a required type enum from optional string in service_details structHow did you test it?
Add config to make the merchant eligible for authentication service
Create merchant connector account for Ctp_visa
{ "connector_type": "authentication_processor", "connector_name": "ctp_visa", "connector_account_details": { "auth_type": "NoKey" } } 'Adyen
update business profile with ctp_visa mca_id
do payments create
do payments confirm
Expected Response
{ "payment_id": "pay_Ft9Ke5Lun924OCJa7yll", "merchant_id": "dqwdwljildwduoqwhduwqcqwjd", "status": "failed", "amount": 1130, "net_amount": 1130, "shipping_cost": null, "amount_capturable": 0, "amount_received": null, "connector": "adyen", "client_secret": "pay_Ft9Ke5Lun924OCJa7yll_secret_po1FVW5adQWFolWJUhMb", "created": "2024-12-18T13:00:47.663Z", "currency": "USD", "customer_id": null, "customer": null, "description": null, "refunds": null, "disputes": null, "mandate_id": null, "mandate_data": null, "setup_future_usage": null, "off_session": null, "capture_on": null, "capture_method": null, "payment_method": "card", "payment_method_data": null, "payment_token": null, "shipping": null, "billing": null, "order_details": null, "email": null, "name": null, "phone": null, "return_url": "https://hyperswitch.io/", "authentication_type": "no_three_ds", "statement_descriptor_name": null, "statement_descriptor_suffix": null, "next_action": null, "cancellation_reason": null, "error_code": "2", "error_message": "Refused", "unified_code": "UE_9000", "unified_message": "Something went wrong", "payment_experience": null, "payment_method_type": "debit", "connector_label": null, "business_country": null, "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": null, "manual_retry_allowed": true, "connector_transaction_id": "KN8X64SH6PRRVS65", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": null, "payment_link": null, "profile_id": "pro_KCTRv8sFQfC0r65CZxrn", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_L6N77PiH3BI2BTPwkZPL", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2024-12-18T13:15:47.663Z", "fingerprint": null, "browser_info": { "language": "en-GB", "time_zone": -330, "ip_address": "::1", "user_agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Mobile Safari/537.36", "color_depth": 24, "java_enabled": true, "screen_width": 2560, "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "screen_height": 1440, "java_script_enabled": true }, "payment_method_id": null, "payment_method_status": null, "updated": "2024-12-18T13:04:08.461Z", "split_payments": null, "frm_metadata": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": null }Reason for it being failed is ayden doesn't support click to pay in sandbox, but does support in production
Checklist
cargo +nightly fmt --allcargo clippy