#josealbertino - charges list

1 messages · Page 1 of 1 (latest)

agile mango
#

Hello, can you show me how you are making this call?

#

Like can you send me the snippet of code where you make this call?

stone panther
#

Yes, we are programming in C/AL, that is a language of Microsoft Dynamics NAV

#

And we use Dot net DLL

#

System.Net.WebRequest.'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

#

like this.

#

The code i:

agile mango
stone panther
#

I retrive only 10 charges.

#

If I put 100 limit, I retrive 100 charges but not filter by created.

agile mango
#

Can you edit your message to remove your secret key? (sk_test_)

#

Some bots crawl public servers looking for keys like that to use. It is a test mode key so it isn't that dangerous but it is still better to keep that protected

agile mango
#

I was unclear, we should make sure that that key is not readable on this server. Typically people replace their key with sk_test_123 when sending snippets so that they can protect their info

#

Of course

#

Thank you for removing them

#

But yes, if you can try that request again, check your dashboard logs (https://dashboard.stripe.com/test/logs) and send me the request ID of a time you made this request, I should be able to take a better look at what is happening with your call

stone panther
#

what is the request id?

#

pHost := pHost + '?created.gt:' + FORMAT(pLastCreated);

HttpWebRequest := HttpWebRequest.CreateHttp(pHost);
Password := '';
UserPasword64 := pUser + ':' + Password;
Base64 := wcUtils.Encode64FromString(UserPasword64);

HttpWebRequest.Headers.Add('Authorization' , 'Basic ' + Base64);

ServicePointManager.Expect100Continue := TRUE;
ServicePointManager.SecurityProtocol(SecurityProtocol.Tls12);

NAVWebRequest := NAVWebRequest.NAVWebRequest;
IF NOT NAVWebRequest.doRequest(HttpWebRequest,HttpWebException,HttpWebResponse) THEN
IF (IgnoreCode = '') OR (STRPOS(HttpWebException.Message,IgnoreCode) = 0) THEN
ERROR(HttpWebRequestError,HttpWebException.Status.ToString,HttpWebException.Message);

#

This is the url that I use to retrive de charge, filter by created greater than

#

And that does not work to filter it.

agile mango
stone panther
#

Let me check

true micaBOT
#

This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact