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

Payment page not working #31

Open
clukas1 opened this issue Jul 6, 2023 · 1 comment
Open

Payment page not working #31

clukas1 opened this issue Jul 6, 2023 · 1 comment

Comments

@clukas1
Copy link

clukas1 commented Jul 6, 2023

Hi,

When the customer aborts during the payment process (when the payment is pending), my woocommerce installation sends the customer an email with a link to pay for the order ($order->get_checkout_payment_url()). However if the customer selects a wallee payment gateway, nothing happens until forwarded to a json. Any easy idea how to make this page work?

Thanks.

image

@theodorspringwallee
Copy link
Contributor

Dear clukas1

By default, our product doesn't support this.

But it's possible to do this:

  1. Ensure you have created a charge flow in your portal space:
    grafik
    https://app-wallee.com/space/select?target=/payment/flow/list (click on "Configure charge flow")
  2. In our plugin you can add a new line after: includes/service/class-wc-wallee-service-transaction.php line 878 as well after 852, respectively after the transaction create method ($this->get_transaction_service()->create())
  3. In this new lines apply the created charge flow on the transaction: WC_Wallee_Helper::instance()->get_api_client()->getChargeFlowService()->applyFlow($space_id, $transaction->getId());
  4. After this, save it and clear shop cache if available.
  5. Check in your portal space that the mail sending is activated (email jobs are created): https://app-wallee.com/space/select?target=/email/job/list
  6. Check also that this specific mail template is activated: https://app-wallee.com/space/select?target=/email/template/list
    grafik
  7. Now you can test it, by doing an order with your own mail address, and by leaving the payment process after the payment method selection. => you should receive then a mail within the next minutes.

Best regards

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

No branches or pull requests

2 participants