- Make changes to the repository
- Once you are done with your changes, run the command in plugin folder -
npm run plugin-zip
- This will generate a sharable plugin zip file which can be directly installed in wordpress
-
Install the WC Foxy plugin using the plugin zip file.
-
Note: Soon this step will be omitted as we will be moving to OAuth flow to generate the credentials instead of manually creating them. Untill then follow the below steps
Create admin user in Foxy admin for WC and copy paste the secrets - Client Id, Client Secret, Refresh Token, Access Token
- In Foxy admin from left panel go to Settings → Integrations → Get Test Credentials
- Enter Project Name and Project Description and click Create button
- Make note of the secrets
- From WC admin's left panel go to WooCommerce → Settings → Payments → Foxy
- Enter previously obtained secrets i.e. Client ID, Client Secret, Refresh Token and Access Token. NOTE: Once the secrets have been set and subscriptions have been purchased in a WC Store, these secrets can not be replaced with secrets of any other Foxy Store. Please make sure that the WC Store where you are adding these secrets have never been connected with any other Foxy store before.
- Here you can update the default values for Title and Description as well. These will control the Title and Gateway Description which user will see on receipt and payment history and on checkout page
-
Update web receipt settings in Foxy admin.
- In Foxy admin from left panel go to Settings → Receipts → Custom template for web receipt
- Here you can control the user's redirection back to your WC store and what you want to show him while he is being redirected after successful payment.
- You can use the markup from
web-receipt-template.html
for the starting point. You can edit it to your liking. By default, it will show your store name and logo along with a message "Please wait, redirecting to your receipt...". Please make sure you replace{{store_domain}}
with your WC store domain.
-
Hide product details on Foxy checkout page (it contains WC Order # and 30 years frequency)
- In Foxy admin go to Settings → Cart → Use default layout
- Disable all options
-
Disable the email receipts from Foxy
- In Foxy admin go to Settings → Receipt → Email receipt
- Disable Email receipt option
If we for some reason decide to update the store domain/URL, then we will need to update the redirection URL in web receipt which we set in point number 3 above.
Note: Soon this section will be omitted as we will be moving to OAuth flow to generate the credentials instead of manually creating them. Untill then follow the below steps This is not at all recommended to change the secrets with that of a new Foxy store. We are currently looking into a way to disable the secret input fields once they have been set. But still if this is really required then we need to follow the below steps in order to update the secrets:
- Clear all the subscriptions from WC store
- Clear all the customers from WC store
- Update the Client secrets by following the steps ininstallation guide i.e. steps through 2.a. till 2.e.
WC plugin in the background will:
- Set the SSO endpoint to
{wc_site_domain}/index.php?rest_route=/foxy/v1/sso
. If an SSO url is already set for the store, it will get replaced - It will add a Json webhook with name as
WC_Store_Transaction_Webhook
and URL{wc_site_domain}/index.php?rest_route=/foxy/v1/webhook/transaction
- In Foxy the subscription frequency would be 30 years. The customer will only get charged whenever the payment is due in WC. If a customer is shifting from non-foxy payment method to Foxy payment method then the start date would be set 30 years in future.