Mangopay/mangopay2-ruby-sdk

ERRNO enoent while trying to create a naturaluser

nsebag opened this issue · 0 comments

Hi,

I've just started mangopay integration to my project, so I decided to test the installation just by creating a MangoPay::NaturalUser after configuration.
While trying to execute my code on localhost this error appears:
"No such file or directory @ rb_sysopen - /log/mangopay.log"
While in '/root/log/mangopay.log' i created the log file 'mangopay.log'

I'm a beginner in rails and I've been strugling all night long around this does anybody knows how to solve the error ?

here's the code that fails :
"client = MangoPay::NaturalUser.create({
Email: current_user.email,
FirstName: current_user.name,
LastName: current_user.surname,
Birthday: current_user.birthday,
Nationality: trad_country(current_user.citizenship),
Address: current_user.adress.rue + current_user.adress.city +
trad_country(current_user.adress.country),
CountryOfResidence: trad_country(current_user.adress.country)
})
"
Thx