WePay.userConfirm()

Send confirmation email to users registered with Register User machine.

For users who were registered via the /user/register call, this API call must be used to send the registration confirmation email. This call can also be used later to resend the registration confirmation email as needed.

Usage

Hover over inputs/exits for more info.

var WePay = require('machinepack-wepay');


// Send confirmation email to users registered with Register User machine.

WePay.userConfirm({

accessToken: '604f39f41e364951ced74070c6e8bfa49d346cdfee6191b03c2c2d9c9cda9184',

emailMessage: 'Welcome to my application',

useProduction: false,

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

accessToken required

The string access token of the user you want to send confirmation to.

'604f39f41e364951ced74070c6e8bfa49d346cdfee6191b03c2c2d9c9cda9184'
emailMessage required

A short message that will be included in the email to the user.

'Welcome to my <strong>application</strong>'
useProduction

Use WePay production API - payments will be charged. Defaults to WePay staging - payments are not charged.

false

Exits

error

An unexpected error occurred.

success

OK.

{ user_id: 12345,
  first_name: 'Bill',
  last_name: 'Clerico',
  email: 'api@wepay.com',
  state: 'registered' }