Integrate payment and automatic activation as plugin Integrate payment and automatic activation as plugin
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Integrate payment and automatic activation as plugin

Started by programista, December 11, 2010, 01:18:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

programista

Hi.

I'm new to cpg but no new to php and i need some suggestions.

I want to make a plugin that will automatically activate new account upon payment. I know how to write a plugin but there is one problem, the plugin needs to have a way of receiving data send by http post from payment service (it is a local payment company).

Payment will be by sms or bank transfer, when someone pays the external payment company will check that all is correct and if it is they will send an http post to a page link that i gave them, this page link should check post data and activate the account, i want this page to be a part of the plugin, so i activate the plugin and give them appropriate page link, so i a was thinking of using "Linking to Custom Plugin Scripts" section of documentation, is this the correct way to enable a plug-in receive external post data ? I need this as a plug in because this is the best way and i can use all cpg goodness like supercage, database access and config, please advise.

ΑndrĂ©

Quote from: programista on December 11, 2010, 01:18:39 PM
i a was thinking of using "Linking to Custom Plugin Scripts" section of documentation, is this the correct way to enable a plug-in receive external post data ?
I think so, but I never tried that.

programista

Have make some research, the only and the better one method it to just make a new php in the root folder and add required includes.