spec/mangopay/shared_resources.rb in mangopay-3.26.1 vs spec/mangopay/shared_resources.rb in mangopay-3.27.0

- old
+ new

@@ -996,6 +996,23 @@ MangoPay::PaymentMethodMetadata.get_metadata( Type: 'BIN', Bin: pay_in['CardInfo']['BIN'] ) end +end + +############################################### +shared_context 'virtual_account' do + ############################################### + include_context 'users' + include_context 'wallets' + + def new_virtual_account(wallet_id) + create_virtual_account = { + Country: 'FR', + VirtualAccountPurpose: 'Collection', + Tag: 'create virtual account tag' + } + + MangoPay::VirtualAccount.create(wallet_id, create_virtual_account) + end end \ No newline at end of file