Question: I have a CPLD with a 50Mhz clock.

This is my code:

```
module FirstProject(clk, LED);
  output LED;
  input  clk;

  reg [32:0] count1;
  reg        LEDstatus;

  assign LED = LEDstatus;

  always @ (posedge clk) begin
    if (count1 < 10000000) begin
      LEDstatus <= 0;
    end
    else begin
      LEDstatus <= 1;
    end
    count1 <= count1 +1;
  end

endmodule

```

I have no idea why this does not work. It deploys on CPLD, but light is always on

This code works on my cpld with the exact same pin assignments and timing constraints

<http://www.fpga4fun.com/Opto2.html>

Answer: 
Have you created a marketplace like in the first step of the tutorial?

<https://www.balancedpayments.com/docs/php#quickstart>

```
Balanced\Settings::$api_key = $key->secret;
$marketplace = new Balanced\Marketplace();
$marketplace->save();

```
I have created the custom library for balanced payments which is availble on github
<https://github.com/yousafsyed/balancedpayments>

Here is the example of usage

```
 require ("balancedpayments.php");

$config = array(
"apikey"              => "ak-test-23923840140fisdfjsodfjd9fjks22sdww", // set your api    key secret
"payment_description" => " Charging the card", // set the payment description
"statement_appear_as" => "Example Company"// set the statement

);

Balancedpayments::config($config); // pass the config array

/**
 * Create customer example
 * */
$userdata = array(
"name"          => "yousaf",
"email"         => "mmesunny@gmail.com",
"adddres"       => "NY street 1",
"meta[user_id]" => "123"
);
Balancedpayments::create_user($userdata);

```

**For More Usage Example See the example on github**
<https://github.com/yousafsyed/balancedpayments#usage>