Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to create customer id when subscribing api with stripe workflow #3573

Open
ajaysehwal opened this issue Feb 5, 2025 · 0 comments
Open
Labels

Comments

@ajaysehwal
Copy link

ajaysehwal commented Feb 5, 2025

Description

check this my current workflow :










<SubscriptionUpdate executor="org.wso2.carbon.apimgt.impl.workflow.StripeSubscriptionUpdateSimpleWorkflowExecutor"/>
<!--SubscriptionUpdate executor="org.wso2.carbon.apimgt.impl.workflow.SubscriptionUpdateApprovalWorkflowExecutor"/-->
<!--SubscriptionUpdate executor="org.wso2.carbon.apimgt.impl.workflow.SubscriptionUpdateWSWorkflowExecutor">
     <Property name="serviceEndpoint">http://localhost:9765/services/SubscriptionApprovalWorkFlowProcess/</Property>
     <Property name="username">admin</Property>
     <Property name="password">admin</Property>
     <Property name="callbackURL">https://localhost:8243/services/WorkflowCallbackService</Property>
</SubscriptionUpdate-->
<UserSignUp executor="org.wso2.carbon.apimgt.impl.workflow.UserSignUpSimpleWorkflowExecutor"/>
<!--UserSignUp executor="org.wso2.carbon.apimgt.impl.workflow.UserSignUpApprovalWorkflowExecutor"/-->

<!--
***NOTE:***
    Users of deletion workflows are expected to implement their own deletion workflow executors and services.
    By default API Manager only implements the core functionalities required to support deletion workflows and
    simple deletion workflow executors. Default WS deletion workflow implementations are not available with the
    distribution.
-->

<SubscriptionDeletion executor="org.wso2.apim.monetization.impl.workflow.StripeSubscriptionDeletionWorkflowExecutor"/>
<!--SubscriptionDeletion executor="org.wso2.carbon.apimgt.impl.workflow.SubscriptionDeletionSimpleWorkflowExecutor">
     <Property name="serviceEndpoint">http://localhost:9765/services/SubscriptionApprovalWorkFlowProcess/</Property>
     <Property name="username">admin</Property>
     <Property name="password">admin</Property>
     <Property name="callbackURL">https://localhost:8243/services/WorkflowCallbackService</Property>
</SubscriptionDeletion -->
<ApplicationDeletion executor="org.wso2.carbon.apimgt.impl.workflow.ApplicationDeletionSimpleWorkflowExecutor"/>
<!--ApplicationDeletion executor="org.wso2.carbon.apimgt.impl.workflow.ApplicationDeletionSimpleWorkflowExecutor">
     <Property name="serviceEndpoint">http://localhost:9765/services/ApplicationApprovalWorkFlowProcess/</Property>
     <Property name="username">admin</Property>
     <Property name="password">admin</Property>
     <Property name="callbackURL">https://localhost:8243/services/WorkflowCallbackService</Property>
</ApplicationDeletion-->

<!-- Publisher related workflows -->
<APIStateChange executor="org.wso2.carbon.apimgt.impl.workflow.APIStateChangeSimpleWorkflowExecutor" />
<!--APIStateChange executor="org.wso2.carbon.apimgt.impl.workflow.APIStateChangeApprovalWorkflowExecutor">
    <Property name="stateList">Created:Publish,Published:Block</Property>
</APIStateChange-->

<APIProductStateChange executor="org.wso2.carbon.apimgt.impl.workflow.APIProductStateChangeSimpleWorkflowExecutor" />
<!--APIProductStateChange executor="org.wso2.carbon.apimgt.impl.workflow.APIProductStateChangeApprovalWorkflowExecutor">
    <Property name="stateList">Created:Publish,Published:Block</Property>
</APIProductStateChange-->

Steps to Reproduce

show error
at java.lang.Thread.run(Thread.java:1583) ~[?:?]

Caused by: com.stripe.exception.InvalidRequestException: No such customer: 'cus_RiV34Xt1t6hz1b'; code: resource_missing; request-id: req_BiuAaA5BGCBBcU

at com.stripe.net.LiveStripeResponseGetter.handleApiError(LiveStripeResponseGetter.java:742) ~[stripe-java-9.8.0.jar:9.8.0]

at com.stripe.net.LiveStripeResponseGetter.staticRequest(LiveStripeResponseGetter.java:533) ~[stripe-java-9.8.0.jar:9.8.0]

at com.stripe.net.LiveStripeResponseGetter.request(LiveStripeResponseGetter.java:81) ~[stripe-java-9.8.0.jar:9.8.0]

at com.stripe.net.ApiResource.request(ApiResource.java:190) ~[stripe-java-9.8.0.jar:9.8.0]

at com.stripe.model.Token.create(Token.java:113) ~[stripe-java-9.8.0.jar:9.8.0]

at org.wso2.apim.monetization.impl.workflow.StripeSubscriptionCreationWorkflowExecutor.createSharedCustomer(StripeSubscriptionCreationWorkflowExecutor.java:343) ~[org.wso2.apim.monetization.impl-1.4.0.jar:?]


... 59 more

[2025-02-05 09:34:58,272] ERROR - GlobalThrowableMapper Could not execute Workflow

Version

4.4.0

Environment Details (with versions)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant