Skip to content

Commit 601bf05

Browse files
authored
Add apiContext save to the end.
1 parent 9d3e502 commit 601bf05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

BunqSdk.Samples/PaymentSample.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ public void Run()
3333
var paymentId = Payment.Create(apiContext, paymentMap, USER_ITEM_ID, MONETARY_ACCOUNT_ITEM_ID).Value;
3434

3535
Console.WriteLine(Payment.Get(apiContext, USER_ITEM_ID, MONETARY_ACCOUNT_ITEM_ID, paymentId));
36+
37+
// Save the API context to account for all the changes that might have occurred to it
38+
// during the sample execution
39+
apiContext.Save();
3640
}
3741
}
3842
}

0 commit comments

Comments
 (0)