formie icon indicating copy to clipboard operation
formie copied to clipboard

GoCardless - How to set up recurring payment

Open Coysh opened this issue 4 months ago • 5 comments

Question

Hi, I've selected Formie due to it's integration with GoCardless which is great. I can't seem to work out how to create a recocurring payment. I've sucesfully set up a "Bank account" and "Pending Billing Requests" within GoCardless from Formie in my sandbox.

Looking at the $payload sent to GoCardless (just by dumping $payload in https://github.com/verbb/formie/blob/ac627a38c3e2bdc38c5861c2bf3d3b576b81b41a/src/integrations/payments/GoCardless.php#L151) - it looks like not even the payment amount is being passed to GoCardless:

array(5) {
  ["session_token"]=>
  string(36) "8b52245d-e11b-4f6d-9bfe-a425bed514b2"
  ["success_redirect_url"]=>
  string(128) "https://proxy.verbb.io?return=http://site.local/formie/payment-webhooks/status?paymentUid=3f5da90d-f0af-4a28-922b-047e794bce96"
  ["metadata"]=>
  array(2) {
    ["formiePaymentId"]=>
    string(2) "13"
  }
  ["description"]=>
  string(24) "Formie Submission #21735"
  ["prefilled_customer"]=>
  array(3) {
    ["given_name"]=>
    string(3) "X"
    ["family_name"]=>
    string(5) "X"
    ["email"]=>
    string(18) "[email protected]"
  }
}

My form is very simple - just the billing details and Payment amount of Fixed value

Additional context

No response

Coysh avatar Aug 27 '25 16:08 Coysh