Patch/add referrer url - #111
Merged
tubiz merged 8 commits intoDec 2, 2024
Merged
Conversation
Adds a referrer url indicating which store a transaction was initialized from
This reverts commit 25a018a.
tubiz
reviewed
Nov 11, 2024
|
|
||
| $paystack_params['metadata']['custom_fields'] = $this->get_custom_fields( $order_id ); | ||
| $paystack_params['metadata']['cancel_action'] = wc_get_cart_url(); | ||
| $paystack_params['metadata']['referrer'] = get_permalink(wc_get_page_id('shop')); |
Collaborator
There was a problem hiding this comment.
Instead of the shop URL, can you switch it to the site url instead esc_url( site_url() )
Formatting and remove extra line
Closed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds the url of the store that initialized a transaction as
referrerin the transaction metadata. This helps with tracking where payments came from, particularly useful in the event that API keys have been compromised and are being used from a site other than the merchant's store.