BankAccount bankAccount =  Marketplace.mine().owner_customer.bank_accounts.query().first();
HashMap<String, Object> payload = new HashMap<String, Object>();
payload.put("amount", 2000);
payload.put("description", "Credit from order escrow to marketplace bank account");
Credit credit = bankAccount.credit(payload);

@@ -5,20 +5,27 @@
 Account 
-bank
+marketplace
 Account 
@@ -92,16 +92,17 @@
 irst();%0A
+%0A
 HashMap%3C
@@ -271,16 +271,17 @@
 ount%22);%0A
+%0A
 Credit c
@@ -292,27 +292,43 @@
 t = 
-bankAccount.credit(
+order.creditTo(marketplaceAccount, 
 payl
@@ -332,9 +332,8 @@
 ayload);
-%0A

Edit order-credit-marketplace