November 2018
Intermediate to advanced
528 pages
13h 21m
English
After receiving the payment from the issuing bank, the confirming bank makes the payment to the seller. In this step, we define the sellerReceivedPayment transaction and related event and update the LC status:
transaction SellerReceivedPayment { --> LetterOfCredit lc}event SellerReceivedPaymentEvent { --> LetterOfCredit lc}
The letter status is set to SELL_RECEIVED_PAYMENT, and the step to 9:
/** * seller Received Payment * @param {org.example.lc.SellerReceivedPayment} sellerReceivedPayment - seller Received Payment * @transaction */async function sellerReceivedPayment(request) { // eslint-disable-line no-unused-vars const factory = getFactory(); const namespace = 'org.example.lc'; let letter = request.lc; if (letter.status ...Read now
Unlock full access