Hi,I'm using the cloudrail library by @DonManfred to try and implement paypal /stripe payment (can't thank you enough for your work)
Not sure if I should create a separate thread for this or not. I'm trying to use the paypal object but when trying to charge I am sometimes (3/4 times) getting this error. Am I doing something wrong ?
Tnx for your advise.
Here is my code :
then
The transaction still appears as successful in the paypal dashboard.
Stripe shows a similar behaviour, too.
Not sure if I should create a separate thread for this or not. I'm trying to use the paypal object but when trying to charge I am sometimes (3/4 times) getting this error. Am I doing something wrong ?
Tnx for your advise.
B4X:
CloudRail_Ready(true)
com.cloudrail.si.types.Charge cannot be cast to de.donmanfred.Payment.ChargeWrapper
java.lang.Exception: Sub paypal_createcharge signature does not match expected signature.
B4X:
dim mycard as Creditcard
dim paypall as paypal
paypall.Initialize("paypal","cid","mysecret",True)
mycard.Initialize("mycard",param1,param3,yearr,param3,cardtype,fnam,name,Null)
'
then
B4X:
paypall.createCharge(150,"EUR",mycard)
B4X:
Sub paypal_Createcharge(ch As Charge)
paypall.ChargeByID(ch.Id)
End Sub
Sub paypal_Charge(id As String, ch As Charge)
Activity.Finish
StartActivity(endtransact)
End Sub
The transaction still appears as successful in the paypal dashboard.
Stripe shows a similar behaviour, too.