spec/mangopay/shared_resources.rb in mangopay-3.13.2 vs spec/mangopay/shared_resources.rb in mangopay-3.14.0
- old
+ new
@@ -415,9 +415,24 @@
RegistrationData: cardreg['RegistrationData'])
end
let(:new_payin_card_direct) { create_new_payin_card_direct(new_wallet) }
+ ###############################################
+ # MBWAY/direct
+ ###############################################
+ let(:new_payin_mbway_direct) do
+ MangoPay::PayIn::Mbway::Direct.create(
+ AuthorId: new_natural_user['Id'],
+ CreditedWalletId: new_wallet['Id'],
+ DebitedFunds: {Currency: 'EUR', Amount: 199},
+ Fees: {Currency: 'EUR', Amount: 1},
+ StatementDescriptor: "ruby",
+ Tag: 'Test PayIn/Mbway/Direct',
+ PhoneNumber: '351#269458236'
+ )
+ end
+
def create_new_payin_card_direct(to_wallet, amnt = 1000)
cardreg = new_card_registration_completed
MangoPay::PayIn::Card::Direct.create(
AuthorId: new_natural_user['Id'],
CreditedUserId: to_wallet['Owners'][0],
\ No newline at end of file