Official Content

To retreive a Stripe object, you need its Id:

  • Retreive the object using StripeSDKMain External Object
  • Load Response or Handle Errors
     
    //Make the API call
    &StripeSDKMain.RetreiveSubscription(&Api_Key,&SubscriptionId,&Response,&Errors,&ErrorCode)
    
    //Handle Errors
    if &ErrorCode = 0
        &StripeSubscriptionRetreiveResponse.FromJson(&Response)
        Msg(&StripeSubscriptionRetreiveResponse.ToJson())
    else
        &StripeError.FromJson(&Errors)
        Msg(&StripeError.ToJson())
    EndIf



Last update: November 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant