How to Fix the ‘Back to Store’ Button Issue in WordPress Cryptomus Payment Gateway

How to Fix Cryptomus Payment Gateway Back to Store Url Change

When using the Cryptomus payment gateway z on your WordPress website to accept cryptocurrency payments, you might encounter an issue where the ‘Back to Store’ button redirects users to the wrong page. Fortunately, this is a common issue that can be resolved by following a few simple steps. In this article, we will provide a step-by-step guide to fixing the issue.

Understanding the Issue

The ‘Back to Store’ button is intended to take users back to your store after a payment attempt. However, if it redirects to an incorrect page, it might confuse users or disrupt their shopping experience. This issue typically occurs due to misconfigured URLs in the payment gateway’s code.

Step-by-Step Solution

Step 1: Access Your Hosting or File Manager

To fix the issue, you need access to the file where the redirect URL is set.

  1. If you have hosting access:
    • Navigate to public_html > wp-content > plugins > cryptomus > Src > gateway.php.
  2. If hosting access is unavailable:
    • Use a WordPress plugin like File Manager to access and edit the file.

Step 2: Locate the Function

Once you open the gateway.php file, search for the following function:
public function process_payment($order_id)Line No: 274
This function controls various aspects of the payment process, including the redirect URL for the ‘Back to Store’ button.

Step 3: Replace the Code

Replace the existing function code with the following updated code. Be sure to update the url_return and redirect fields with the correct URL for your store:

Replace https://your-custom-url.com/ with the URL you want the ‘Back to Store’ button to redirect to.

Step 4: Save and Test

  1. Save the file after replacing the code.
  2. Test the payment gateway on your website to ensure the ‘Back to Store’ button now redirects to the correct page.

Important Tips

  1. Backup Your Website:
    Always create a backup of your site before making changes to the code. This ensures you can restore it if anything goes wrong.
  2. Seek Expert Help if Needed:
    If you’re not comfortable editing code, consider hiring a Professional developer or watch tutorials on the process.

Conclusion

Fixing the ‘Back to Store’ button redirection issue in the Cryptomus payment gateway is straightforward when following these steps. By correctly configuring the redirect URL, you can provide your customers with a seamless payment experience. Don’t forget to test the changes thoroughly before making the site live.

Scroll to Top

Custom WooCommerce Store for a Modern Jewelry Brand

My role. WordPress & WooCommerce Website Developer

Project description.

For a modern jewelry brand needing a sophisticated e-commerce website, I developed a complete, custom solution using WordPress, WooCommerce, and Elementor Pro. My work involved designing all key pages—from a captivating homepage to a seamless checkout process—and integrating essential features like secure payment gateways, product variants, and customer reviews.

 

The final result is a fully responsive, speed-optimized store that provides a premium shopping experience and is built with best practices to support the brand’s future marketing and SEO needs.

Skills and deliverables

WordPress e-Commerce

WooCommerce Setup

Elementor Pro

Payment Gateway Integration

Responsive Web Design

E-commerce Strategy

Jewelry eCommerce Website Thumbnail image

Shopify Clothing Store – Responsive & SEO-Optimized eCommerce Website

My role. Shopify Designer & Developer

Project description.

For a growing fashion brand needing a professional online presence, I delivered a comprehensive Shopify e-commerce solution. My focus was on creating a modern, mobile-first design that was fast, secure, and optimized for SEO to drive sales.

I handled the complete store development, including product uploads, secure payment gateway integration, and the addition of key marketing features like customer reviews and a blog. The final result is a scalable, easy-to-manage Shopify store that provides a seamless shopping experience and is built for future growth.

Skills and deliverables

Shopify Development

Shopify Website Redesign

Responsive Design Testing

Payment Gateway Integration

Ecommerce Product Upload

Shopify Clothing Store

Luxury Jewelry Brand – Shopify eCommerce Website Design & Development

My role. Shopify Website Developer

Project description.

I built a complete Shopify eCommerce website for a jewelry brand. My goal was to create a clean, mobile-friendly store that highlights the product quality and makes shopping easy for customers. I customized the theme to match the brand style, added products with images and variants, set up secure payment and shipping, and connected key apps like reviews and chat. The store is optimized for fast loading and is ready for marketing.

Skills and deliverables

Shopify Development

Shopify Website Redesign

Shopify Templates

Set Up Shopify Site

Payment Gateway Integration