B4X:
public void CreatePayment(int amount, String orderID, String description, String email, String bitmap){
int drawableID = BA.applicationContext.getResources().getIdentifier(bitmap, "drawable", BA.packageName);
Bitmap image = BitmapFactory.decodeResource(BA.applicationContext.getResources(), drawableID);
TransactionRequestBuilder builder = new TransactionRequestBuilder(amount, Currency.getInstance("EUR"));
builder.setDescription(description)
.setBitmap(image);
if (!TextUtils.isEmpty(email)) {
builder.setEmail(email);
}
TransactionRequest request = builder.createTransactionRequest();
//PaylevenApi.initiatePayment(this.getParent(), orderID, request);
PaylevenApi.initiatePayment(ba.activity, orderID, request);
}
B4X:
PaylevenApi.initiatePayment
The docs saying i must override onActivityResult. I tried different things but i did not got the result returned.
B4X:
ba.startActivityForResult(ion, intent);
B4X:
//@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
BA.Log("onActivityResult("+requestCode+","+resultCode);
When using not "extends Activity" i tried it without the Override.
I tried it with extends Activity and using Override... Both dont work.
I dont know what i can try now... Does anybody have a hint for me?