diff --git a/booking.events.inc b/booking.events.inc index c213688..6a5afa6 100644 --- a/booking.events.inc +++ b/booking.events.inc @@ -1,5 +1,4 @@ 'varchar', 'length' => '200', 'not null' => FALSE); + db_add_field('booking_payment', 'booking_stripe_token', $spec); + //update the view to match the new table definition + _booking_node_create_mysqlview(); +} + /** * Implementation of hook_install(). */ @@ -840,6 +850,7 @@ function booking_schema() { 'booking_payer_status' => array('type' => 'varchar', 'length' => '50', 'not null' => FALSE), 'booking_item_name' => array('type' => 'varchar', 'length' => '200', 'not null' => FALSE), 'booking_ipn_track_id' => array('type' => 'varchar', 'length' => '200', 'not null' => FALSE)), + 'booking_stripe_token' => array('type' => 'varchar', 'length' => '200', 'not null' => FALSE)), 'primary key' => array('payid'), ); diff --git a/booking.stripe.inc b/booking.stripe.inc new file mode 100644 index 0000000..79c1dbb --- /dev/null +++ b/booking.stripe.inc @@ -0,0 +1,7 @@ +