Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @inabizzel ,

    Thank you for using Direct Stripe.

    I have a big update planned for august in order to be set for SCA regulation coming in September. I won’t add any feature for a while I’m afraid. ( And I also think that as it is not a Stripe feature, that probably should remain custom code ).

    That can be done as in the recipe, meaning using custom code. You can set the code on your server and use a custom WordPress API route as the endpoint.

    I had written a gist example that uses a method that would work in this case, you can see it at https://gist.github.com/New0/d72217de1e60871cf938715c2fd03b61

    In your case the webhook needs to be called on subscription update and the function called by the API route would handle the implementation of installments_paid metadata.

    You would also need to use the “direct_stripe_subscription_data” filter hook to add “installments_paid: 0,” to the metadata during subscription creation. ( https://newo.me/direct-stripe-actions-and-filters-hooks/ )

    Kind regards,

    Nico

    Thread Starter farvavadfbdafv

    (@inabizzel)

    Hello, thank you for taking the time to respond in such detail, I appreciate it. I spent a few hours trying what you suggested but I am unfortunately not good enough to get it working. I have since discovered a paid plugin that does exactly what I need.

    Many thanks,
    J

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Set limit of subscription payments’ is closed to new replies.