dotpay / drupalcommerce

drupalcommerce
0 stars 2 forks source link

Fix: EntityMetadataWrapper exception when NOT using billing address #1

Closed lklimek closed 7 years ago

lklimek commented 8 years ago

We are not using billing address in our flow. In our configuration, Dotpay module causes exception in Entity.

lklimek commented 8 years ago

This solution is just a "fallback" that will be used when someone doesn't use billing address, and it's backward-compatibile. I believe that even if it changes behavior, it's worth committing, as the user is still able to finish his transaction - just with one more step on DotPay's site.

Otherwise you should add some error checking to give developers meaningful info about this issue - we've spent too much time trying to figure out why we get entity malformed exception.

lklimek commented 7 years ago

Closing this one as DotPay 2.x works correctly in my setup.