49
Views
14
Comments
[Payments Plugin] [OS-PLUG-PAYM-0007 Couldn't execute the payment flow.] Error in Payments plugin.
Question
payments-plugin
Mobile icon
Forge asset by OutSystems
Application Type
Mobile

Hi,
I always get this error in the TriggerPayment action when I try to use the Payments plugin through the Payments Plugin -Demo application. 

I have already made the settings in the Payments Plugin Configurator, defined the ClientID and Client Secret in the TriggerPayment action, and also defined the PaymentsPluginConfiguration.json in the Payments Plugin -Demo resources. 

In the Payments Plugin Configurator application, in the integration with the Stripe API, the documentation says: "In the Basic authentication section, fill the Username field with the secret key value you obtained from the Stripe dashboard", but I don't know what to put in the "Password" field ".


Could this be the problem? 
Can anyone give some help?

Best Regards

UserImage.jpg
Ricardo Silva

Hey Bruno,

What OS is this? Android and/or iOS?

Was the `password` field blank by default? Looking into the documentation, it seems like you don't need to change that value when configuring Stripe (the `secret key` should be enough).

Best regards.

2019-10-09 13-57-19
Bruno Oliveira

The OS I'm using its Android.
When I open the version from forge it already has the basic authentication as default and it comes with a random secret key but without password giving an error on service studio since the password field is mandatory. I'm not sure if the problem is here, I'm just trying to figure it out :)

UserImage.jpg
Ricardo Silva

Considering that the documentation doesn't mention anything regarding the password, I believe you can insert some dummy value in it.

2019-10-09 13-57-19
Bruno Oliveira

Hi,
I tested again with a dummy value in the password field and had the same error. But when I just test the service it gives a success message so I think maybe the problem isn't there.


UserImage.jpg
Ricardo Silva

How's the app configuration on the Payments Configurator? Have you filled in everything required (including the PSP info)?

2019-10-09 13-57-19
Bruno Oliveira


Yes I suppose. But I'm not sure what to put in the Merchant's Id field, because stripe doesn't have any ID with that name in the test account I created. Do you know what value I am supposed to put in this field?

UserImage.jpg
Ricardo Silva


Considering that it's Android and Stripe, I believe that value can be defined by the developer as it's not required by Stripe.

2019-10-09 13-57-19
Bruno Oliveira


Okay, so I don't think that's the problem either. All fields are filled in (including the PSP info). 

UserImage.jpg
Marcelo Marques

Hey Ricardo, I'm working with Bruno on this and we found out that this error is coming from a Javascript method inside the TriggerPayment action. This method receives two inputs (PaymentDetails, AccessToken), the payment details are filled by us and everything looks ok, the AccessToken comes from the ClientId and ClientSecret generated by Payments Configurator App. Basicly both inputs look ok but the result is an error somehow. I will leave the flow where the error is happening here. 

image (1).png
image.png
UserImage.jpg
Marta Carlos

Hello Marcelo,

What are the error code and error message the method returns?

Best regards

2024-04-25 12-13-15
Gianfranco Lombardo


¿Finalmente has podido solucionar el problema del campo de contraseña? Tengo el mismo problema y no sé como solucionarlo. Soy nuevo en outsystems y no entiendo muy bien estas cosas.

2025-01-09 14-56-57
IQ78

Make the user name == the password

2025-01-09 14-56-57
IQ78

And It is OS bug also, the URL-Form Encoded cannot run in test. But if you execute, say it from a button, it works.

2025-01-09 14-56-57
IQ78

You can create a REST API yourself to consume the Stripe API.

regards 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.