Update state of content on paiement validation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yberges
    Senior Member
    • Jul 2022
    • 174

    Update state of content on paiement validation

    Hello
    i add a bank paiement to a form worflow i want to know if i can change value of field according an api ?
    thanks for any doc links
  • Vadym
    Super Moderator
    • Jun 2021
    • 346

    #2
    Hi yberges

    Please describe your issue in more detail and provide a screenshot.

    Comment

    • yberges
      Senior Member
      • Jul 2022
      • 174

      #3
      hello
      i have banque gateway and i want to update subscription field after payement (banque api return) like a stripe validation

      Comment

      • yberges
        Senior Member
        • Jul 2022
        • 174

        #4
        hello some idea about this ?

        Comment

        • AgentT
          Member
          • Aug 2021
          • 77

          #5
          Your query is not clear enough. You are making an API call and then want to set a field based on the response? The should be pretty simple, just add the right conditional on the API response and use the ORM and the entity object to set the appropriate fields.

          Comment

          • yberges
            Senior Member
            • Jul 2022
            • 174

            #6
            sorry i will try to explain more
            1 i create X products
            2 i create a form to sell X products
            3 user is redirected to bank paiement page
            => i want to update state of form if paiement is ok

            Comment

            • AgentT
              Member
              • Aug 2021
              • 77

              #7
              The API call to make the payment should return a success/failure response based on that you can set the field.

              How are you making the API call to redirect the user?

              Comment

              Working...