Skip to content

Commit

Permalink
Merge pull request #566 from ebanx/fix/save-document
Browse files Browse the repository at this point in the history
Fixed saving customer document when creating account on checkout
  • Loading branch information
Anderson Campanha committed Sep 27, 2017
2 parents b03192a + 02598bf commit 0aad597
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php
Expand Up @@ -846,6 +846,10 @@ protected function save_order_meta_fields($order, $request)
*/
protected function save_user_meta_fields($order)
{
if (!$this->userId) {
$this->userId = get_current_user_id();
}

if ($this->userId) {
$document = false;

Expand Down

0 comments on commit 0aad597

Please sign in to comment.