request('/checkout/create', array( 'account_id' => $account_id, // ID of the account that you want the money to go to 'amount' => 100, // dollar amount you want to charge the user 'short_description' => "this is a test payment", // a short description of what the payment is for 'type' => "GOODS", // the type of the payment - choose from GOODS SERVICE DONATION or PERSONAL 'mode' => "iframe", // put iframe here if you want the checkout to be in an iframe, regular if you want the user to be sent to WePay ) ); } catch (WePayException $e) { // if the API call returns an error, get the error message for display later $error = $e->getMessage(); } ?>

Checkout:

The user will checkout here:

ERROR: