Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to integrate third party payment gateway

Former Member
0 Kudos
361

Dear Sir,

we are implementing Retail POS (Point of sale) for one retail company. We need to integrate third party payment gateway.

it's name is PLUTAS. We have got developer kit from Plutas (For trial ) . we have installed that kit in our system.

In my program, I am triggering " PL_TriggerTransaction" using call method. After triggering method it executes method, control passes to third party software. But I am not able to catch return parameter (Responce).

So that would be great if you help me out with this issue.

I wrote following code.

-


REPORT ZTEST678.

-


INCLUDE OLE2INCL.

data : rc_plutus type ole2_object,

lpszTransData type string,

lTxnType type char4,

lpszTransData1 TYPE string,

ret_string TYPE string,

l_count TYPE i,

l_time TYPE sy-uzeit.

rc_gui type ref to CL_GUI_CONTROL.

lTxnType = '4001'. "----


transaction type

lpszTransData = '1234567'. " -


trasaction data

*create object rc_gui.

create object rc_plutus 'PLUTUSEXCHANGE.EXCHANGEOBJ'(001) no flush. "no flush ."queueonly.

call method of rc_plutus 'PL_TriggerTransaction'(002) = lpszTransData1

exporting

#1 = lTxnType

#2 = lpszTransData.

wait up to 20 seconds.

write: ret_string. " <----


Value is not coming

write: lpszTransData1. " <----


Value is not coming

-


-


1 REPLY 1

Jelena_Perfiljeva
Active Contributor
0 Kudos
102

Read ABAP help (F1) for 'call method of'. There are certain requirements for the return value's (rc) type.