Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Stripe keeps track of customer objects, etc.. using cbpaidConfig class. Review the usage in CBSubs Stripe if you want to utilize it as well.Do you suggest adding to that the Stripe recurring mechanism ? (would be so kind as to point me to the methods that handle that ?)
Payment is created at CCBill. CBSubs keeps track of the CCBill specific ID by attaching it to the basket. CBSubs then setups up the scheduler for recurring payments and triggers a payment on that ID when it's time to renew. Vast majority of this is done in processScheduledAutoRecurringPayment.How does the CCBILL DataLink work ?
That's a CRON endpoint, which will execute processScheduledAutoRecurringPayment for hosted payment gateways.Also, where does this action take place ?
index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&do=autopayments&key=
what file should i be looking at ?
Also, what DB table/field does this check ? the date of subscription ?
i would like follow the chain of events and to create an occurrence.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Enabling the scheduler is done at time of payment in _returnParamsHandler by calling scheduleAutoRecurringPayments.1.
when you say
"CBSubs then setups up the scheduler for recurring payments and triggers a payment on that ID when it's time to renew" -
where does "setups up the scheduler" happen and how ? - this must be in the DB somewhere ? what table should i be looking at ?
i would like to simulate a setup of a scheduler as such so i can initialize the process and debug it.
It checks if there are any baskets with payments scheduled. If there are it loads the basket and runs its associated processScheduledAutoRecurringPayment function. That's basically all there is to it. Triggering of payment is entirely on the gateway and its processScheduledAutoRecurringPayment function usage.2.
"That's a CRON endpoint, which will execute processScheduledAutoRecurringPayment for hosted payment gateways." - yes, i realize that.
what process does it trigger first before "processScheduledAutoRecurringPayment" ?
there must be some indicator(date ?) in the DB it is testing to see if its time to run the due payment in the hosted gateway.
if i can piggyback this process i can send a payment token to my own payment gateway.
Because you've no recurring payments scheduled to renew at the time of it being ran. Be sure you're using an IDE like PhpStorm. All of these functions have associated phpdoc and should trail you through their execution.i tried to run this cron address in the browser and log the initiation of "processScheduledAutoRecurringPayment" in CCBILL, but nothing happens,
im guessing because it has no payment in the DB to process , is this correct ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.