cancel
Showing results for 
Search instead for 
Did you mean: 

incoming payment through DI API

Former Member
0 Kudos

I am posting incoming payment with credit card detail through DI API, but Card Valid Until year taking 14 only

Accepted Solutions (1)

Accepted Solutions (1)

pedro_magueija
Active Contributor
0 Kudos

Hi Nandappa,

What do you mean with taking 14 only? Does it only accept cards that are valid until 2014? Is there an error message?


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

Former Member
0 Kudos

Hi Pedro Magueija,

If i pass month and year as 05/10, entry will post like 10/14 (Month/Year).

If i pass month and year as 12/15, i got bellow errow

Conversion from string "12/15" to type 'Date' is not valid.

edy_simon
Active Contributor
0 Kudos

Hi Nandappa,

Public Property CardValidUntil() As Date

the property accepts date type.

You need to pass in a date. not MM/YY only.

Regards
Edy

pedro_magueija
Active Contributor
0 Kudos

Hi Nandappa,

Like mentioned, the property on the DI is a Date type, which means that instead of the string "12/15" you'd have to create a new DateTime for that date (e.g.: new DateTime(2015,12,31)).


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

Former Member
0 Kudos

Hi Pedro Magueija,

yes, I passed like that. I solved the problem.

Regards,

Nandappa

pedro_magueija
Active Contributor
0 Kudos

Hi Nandappa,

Glad to know the issue is solved. Please close the thread when you can.

Cheers.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

Former Member
0 Kudos

Hi Pedro Magueija,

I am new to this block, how to close the thread

edy_simon
Active Contributor
0 Kudos

Hi Nandappa,

Please close the thread once if you have got your answer.

Regards

Edy

pedro_magueija
Active Contributor
0 Kudos

Hi Nandappa,

No problem, to close the thread you can mark one of the answers as correct (this closes the thread).

You can also mark answers as Helpful (this won't close the thread but it attributes some points to the author).

If none of the answers is correct you can also find a link on the top of your discussion that enables you to close the thread without marking any answers.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

Answers (0)