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

Send transaction ids to woocommerce #125

Merged
merged 20 commits into from
Mar 11, 2021

Conversation

strangerkir
Copy link
Contributor

@strangerkir strangerkir commented Feb 19, 2021

Issue: PCP-65.


Description

Add transaction URL to the WC Order. Make it clickable so the site admin could check transaction on the PayPal site.


Add the _transaction_id field to a new WooCommerce order so it will be displayed on the edit order page. Add view_transaction_url to the payment gateways so the displayed transaction could be clickable. For each order, the payment mode is saved to the meta field. Depending on that, each order will be displayed sandbox or live transaction URL.

Note: Transaction URL displayed for the orders only.

Steps to test:

  1. Purchase any product using PayPal gateway.
  2. Open the order page in the WC admin and check the line under the order number (where the transaction id is usually displayed). It should contain clickable transaction id.
  3. Login into your test merchant PayPal account in a new tab.
  4. Return to the tab with the WC order and click transaction id. You should see the PayPal page with the transaction.
  5. Do the same procedure using Credit Card payment.

Note: If you will click on the transaction number and login into PayPal account later you will not be redirected to the transaction page. So, you need to be logged in first.

Documentation

  • This PR needs documentation (has the "Documentation" label).

Changelog entry

Enter a summary of all changes on this Pull Request. This will appear in the changelog if accepted.

  • Add - Display clickable transaction id on the edit order page.

@strangerkir strangerkir marked this pull request as ready for review February 22, 2021 14:50
@strangerkir strangerkir requested a review from Dinamiko February 22, 2021 14:52
@Dinamiko Dinamiko merged commit f295fad into trunk Mar 11, 2021
@Dinamiko Dinamiko deleted the PCP-65-send-transaction-IDs-to-woocommerce branch March 11, 2021 11:22
@Dinamiko Dinamiko mentioned this pull request Apr 8, 2021
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

Successfully merging this pull request may close these issues.

2 participants