I'm using activemerchant as a payment gateway plugin for Spree and I'm trying to use two different payment gateways (The implementation is the same but the credentials are different and they connect to different merchants) based on credit card type/brand? Is there a easy way to to this or where can I find the entrypoint method/class to add this logic?
How use different payment gateways based on credit card type on Spree?
117 views Asked by Alireza Bashiri At
1
There are 1 answers
Related Questions in PAYMENT
- Issue in payment form gateway
- How to test Creating and Cancelling Subscription in ThriveCart in Test Mode
- The Square webhook is being triggered twice for a single event (subscription.created)
- i have intergrated daraja api with by booking app coded in java but in payments page it toasts an error message Error:Failed to initiate payment
- Settlement Amount of Razorpay Dashboard is not correct
- I want to update the price for a product on Stripe
- How can an AI agent make a purchase?
- Flutter in_app_purchase multiple subscriptions
- How to source invoice record's line item details on customer payment advanced pdf template?
- Paypal PAYEE_ACCOUNT_INVALID
- Request for assistance with Guidewire, Claims Center, TYPE column and PAYMENT vs PAYEMENT
- how to setup stripe webhook in django
- stripe transfer method in django
- split payments using stripe in django
- Is the session automatically destroyed after navigating to the MasterCard payment gateway?
Related Questions in SPREE
- Unable to Authenticate User in a custom controller using Spree / spree_auth_devise Gem - API only
- How to fix the issue where the variant is not finding the product while normalizing cart in framework/spree of V1?
- IIS reverse proxy using ARR returning 502.3 Bad Gateway - Operation Timed Out for some requests
- I have to implement Doorkeeper in a spree based application to generate client Id and client secret key from admin panel
- Rails Url_For Wrong Link Being Used
- IIS 10 Bad Request - Invalid URL code 400
- NoMethodError in Spree::Api::V2::Storefront::CheckoutController#complete how to solve this in spree 4.6 storefront api
- I want to override the api method for /spree_oauth/token in spree 4.4
- Sidekiq worker is giving error "no implicit conversion of Symbol into Integer excluded from capture: DSN not set"
- ActiveStorage with Apartment gem only checks public schema to load files instead of tenant schema
- Uncaught ReferenceError: Spree is not defined
- Nextjs routing without prefixes Spree Commerce
- Spree Can't add new preference with rails 7 app from a gem
- How to get the content of the string being replaced with deface library, before the replacement
- Rails app didn't start - uninitialized constant Rails::Command::Actions::APP_PATH (NameError)
Related Questions in GATEWAY
- The rate limiting doesn't work with redis in JMeter
- Gateway integrated security oauth2 logout failed
- How to route requests from a gateway resource in k8s that takes in UDP traffic?
- Spring + Keycloak: Gateway Docker container returns 404
- More than the maximum allowed number of headers in Netty
- Error occurred while proxying request localhost:8080/create to http://localhost:8081/
- websocket sockJS connection on spring cloud gateway eurekaproblem
- How to add Healthcheck endpoint to deploy openTelemetry collector behind GW in GKE?
- Unable to set up scheduled refresh in powerBI Service when Data is imported into PowerBI from S3 using R script
- Error when Refreshing Power BI Gateway - Mashup error
- After payment my php site gets logged out, not comes to the payment success page
- YARP - Change route matching configs at runtime
- Issue on Remote Desktop connection
- Azure Static website on Storage Account behind Application Gateway
- Local get request -> Response Cache - Spring Cloud Gateway - non existent
Related Questions in ACTIVEMERCHANT
- How to use activemerchant with Shopify?
- How do I save a name with my customer payment profile via ActiveMerchant::AuthorizeNetCimGateway?
- Recurring billing using the ActiveMerchant Gem through Authorize.net stopped working
- Ruby 2.6.6 OpenSSL 1.1.1g - certificate verify failed (unable to get local issuer certificate)
- Solidus payment integration with stripe connect account
- ActiveMerchant use Cyber Source flex token for payment
- How use different payment gateways based on credit card type on Spree?
- Problem matching amounts with PaypalExpressGateway.setup_authorization
- The merchant's account is not able to process transactions with activemerchant + Ruby on rails + Paypal
- How to get Customer ID Through ActiveMerhant StripeGateway -(Ruby on Rails)
- Is there a safer way to use Stripe and ActiveMerchant together? Ruby on Rails
- Rails: Paypal Express implementation fails with undefined method `checkout_thank_you_url'
- Is it possible to use Accept.js tokens with ActiveMerchant?
- Sending CC number to server with HTTPS without storing in DB
- Error using ActiveMerchant::Billing::AuthorizeNetCimGateway with Authorize.Net's opaqueData
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I end up duplicating payment methods using different credentials and passing down the payments to front-end and redirect credit cards with specific companies to mapped payment methods.
1-Duplicate the payment method with different merchant credentials
2-Pass down the payment details in Rails views e.g.
payment_methods: payment_methodsin partial3-Use erb evaluation to embed payment methods with their associated credit card companies e.g
{stripe01: 1, stripe02: 2}4-Check against credit card number which in this case is masked
maskedCardInfoto get the company name5-Return which payment method id is meant to be used for a specific credit card company
6-Replace form inputs/fields names before submit
DONE