From ec6b7399e4d4c134db2f1679fea1d75f2641d046 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 21 Jul 2016 08:12:14 +1000 Subject: [PATCH] commence adding stripe integration --- booking.events.inc | 1 - booking.info | 4 ++-- booking.install | 11 +++++++++++ booking.stripe.inc | 7 +++++++ 4 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 booking.stripe.inc 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 @@ +