Currently finalizing the mod_paysub setup... There were two issues which were preventing proper operation, both operator error. However, there is still one problem.
Operator Error:
1) mod_paysub verifies a secure connection, otherwise it will not handle payment info. When using a proxy in front of Zotonic to handle SSL, forwarding traffic to Zotonic on the standard non-encrypted port 8000, communication with Stripe will fail. To resolve, I enabled mod_ssl_ca, configured Zotonic/FreeBSD VM to listen on port 443, and reconfigured proxy to use port 443.
2) I was attempting to use a payment link, rather than using "
_paysub_checkout_link.tpl" to initiate a Checkout session. Once a Checkout session is properly initiated, everything works properly.
Remaining Issue:
When payment for a subscription is made, and a user is redirected to their profile page as expected, the user is NOT added to the user group associated with the subscription.
As shown above, in the Admin the User has an active subscription, but the Contact field is not populated (not sure if it should be), and the user group has not been updated to Digital Member.
Looking at
mod_paysub.erl at line 229, it appears that mod_acl_user_groups is supposed to initiate an update to the user group, but I am not certain what triggers it. To test I have updated User info in the Stripe portal, and Zotonic pulls it down, but nothing I do seems to trigger Zotonic to update the User Group that the subscriber should be added to.
I must be missing something, but am not certain how to overcome this last hurdle. Any suggestions?