Android Question Payment Intent

Pantelis Loizou

Member
Licensed User
Longtime User
Hi to everyone

I need to convert the attached documentation to B4A code but i am facing a problem. The intent is working when i am sending data but there is no reply. I am not receiving anything and it is always NULL. Can anybody advice as to why this is?
Dim payIntent As Intent

Sub Activity_Resume
If Activity.GetStartingIntent=payIntent Then
Return
Else
payIntent = Activity.GetStartingIntent
EcrResult = payIntent.GetData

If EcrResult<>Null Then
?????
End If
End Sub

Private Sub btnPayment_Click
payIntent.Initialize("cy.com.jcc.softpos.TRANSACTION","")
payIntent.PutExtra("AMOUNT","1.00")
StartActivity(payIntent)
End sub
 

Attachments

  • Intergating External App v1.0.pdf
    129.2 KB · Views: 241

Pantelis Loizou

Member
Licensed User
Longtime User
Sorry about that. below my code

B4X:
Sub Process_Globals
    Dim payIntent As Intent
    Dim EcrResult As String
End Sub

Sub Activity_Resume
If Activity.GetStartingIntent=payIntent Then
Return
Else
payIntent = Activity.GetStartingIntent
EcrResult = payIntent.GetData

If EcrResult<>Null Then
?????
End If
End Sub

Private Sub btnPayment_Click
payIntent.Initialize("cy.com.jcc.softpos.TRANSACTION","")
payIntent.PutExtra("AMOUNT","1.00")
StartActivity(payIntent)
End sub
 
Upvote 0
Top