Hi Justas, That's correct, the PayPal module source is not available, but is provided as a workflow reference as it's the module most commonly used by WHMCS operators, so are most likely to be familiar with how the payment process works. The documentation for creating a callback file is here: https://developers.whmcs.com/payment-gateways/callbacks/ You could add some code to your callback file to update the tblhosting.subscriptionid value in the database: https://developers.whmcs.com/advanced/db-interaction/ I trust that gives you a good starting point for your customisations. For further assistance customising WHMCS I'd recommend posting on our Developer Corner forum where our friendly and knowledgeable community will I'm sure be pleased to assist in this matter: https://whmcs.community/forum/41-developer-corner/ If we can assist with any software technical errors, please don't hesitate to get back in contact. Kind Regards, -- John Kipling Head of Support WHMCS, Ltd. www.whmcs.com Blog | Community | Documentation | Guides & Tutorials | Feature Requests 13th Jan 2020 (00:50) Justas Urbonas Client Your documentation keeps mentioning some PayPal Subscriptions module I assume, yet I am not able to find any source code for said module or any other information for that matter. 13th Jan 2020 (00:37) Justas Urbonas Client Implementing In Payment Gateway Modules This feature should only be defined for payment gateways which create automatic recurring subscriptions that are processed outside of WHMCS (for example PayPal Subscriptions). Implementation is a two-step process: A subscription ID must be stored in tblhosting.subscriptionid for the given service in order for the cancel subscription function to be invokable. Typically this value should be set as part of a payment gateway callback routine (see callbacks) How do I store the subscriptionid? 10th Jan 2020 (09:42) John Kipling Staff Hi Justas, The tblclients.gatewayid field is not used in v7.8 and above. Instead please use a Pay Method to store the value: https://developers.whmcs.com/payment-gateways/tokenised-remote-storage/ I trust that gives you a good starting point for your customisations. For further assistance customising WHMCS I'd recommend posting on our Developer Corner forum where our friendly and knowledgeable community will I'm sure be pleased to assist in this matter: https://whmcs.community/forum/41-developer-corner/ If we can assist with any software technical errors, please don't hesitate to get back in contact. Kind Regards, -- John Kipling Head of Support WHMCS, Ltd. www.whmcs.com Have you Tried the v.7.9 Beta? | Community | Documentation | Guides & Tutorials 10th Jan 2020 (05:21) Justas Urbonas Client The 'gatewayid' is saved in 'tblclients' but when pressing the 'Attempt Capture' button (note the screenshot attached) - the 'gatewayid' is deleted and an error occurs which states that the user has no credit card details. Is the 'gatewayid' stored in the correct place? Attachments (1) Screenshot from 2020-01-10 11-30-30.png 9th Jan 2020 (09:01) Joshua Stanford Staff Hello, However, if you're able to get the 3rd party gateway to send back a gatewayid parameter you could store that as a token and then implement an _capture function in your module to use that token going forward to capture payments. https://developers.whmcs.com/payment-gateways/merchant-gateway/ I hope this helps and if you need any further assistance please let me know. Thanks! Best regards, -- Joshua Stanford Technical Analyst I WHMCS, Ltd. www.whmcs.com Have you Tried the v.7.9 Beta? | Community | Documentation | Guides & Tutorials | Feature Requests 9th Jan 2020 (08:58) Joshua Stanford Staff Hello, Thanks for contacting WHMCS support! Third Party Gateway modules work like the PayPal module. The user is directed to the 3rd party site to make their payment. WHMCS would not be able to initiate captures for payments. It would be up to the 3rd party gateway to process the payment like a PayPal subscription does, and then send a payment notification to WHMCS via the module's callback file. If you have any further questions/issues, please let me know. Best regards, -- Joshua Stanford Technical Analyst I WHMCS, Ltd. www.whmcs.com Have you Tried the v.7.9 Beta? | Community | Documentation | Guides & Tutorials | Feature Requests 9th Jan 2020 (06:01) Auto-Response Staff Hello, Thank you for submitting a support request to WHMCS. We noticed that you didn't submit some or all of your WHMCS, Control Panel or FTP login credentials. This information helps us troubleshoot your issue more effectively and if you choose not to provide this information, it may take us longer to solve your issue. If you would like to update or provide this information, you can do so securely at the URL below. https://www.whmcs.com/members/viewticket.php?tid=FLS-699341&c=QemXyNdW&updatedetails=1 Your ticket is still open and in our queue, but statistically we find providing login information does reduce the time to resolution in most cases. Thank you 9th Jan 2020 (06:01) Justas Urbonas Client https://developers.whmcs.com/payment-gateways/subscription-management/ 'Implementing In Payment Gateway Modules' step is where my question is coming from. I am developing a 'Third Party Gateway' module for a payment processor, said processor allows recurring payments to go through even if the initial payment was processed by their hosted payment page. If i understand correctly I should be able to implement a function which runs when you click on an 'Attempt Capture' button (or a cron triggers this function), yet no matter what I try to do - the button stays disabled. Is there something I do not understand in the documentation?