~singpolyma/sgx-jmp

3c798059e4c8ebdd9cee09a5b3b53c77066ea90a — Stephen Paul Weber 1 year, 3 months ago 94bb851
ergonomics for testing credit card
2 files changed, 3 insertions(+), 4 deletions(-)

M lib/customer.rb
M lib/registration.rb
M lib/customer.rb => lib/customer.rb +1 -2
@@ 74,8 74,7 @@ class Customer
	end

	def payment_methods
		@payment_methods ||=
			BRAINTREE
		BRAINTREE
			.customer
			.find(@customer_id)
			.then(PaymentMethods.method(:for_braintree_customer))

M lib/registration.rb => lib/registration.rb +2 -2
@@ 208,7 208,7 @@ class Registration
			def oob
				oob = OOB.find_or_create(@reply.command)
				oob.url = CONFIG[:credit_card_url].call(
					@reply.to.stripped.to_s,
					reply.to.stripped.to_s.gsub("\\", "%5C"),
					@customer.customer_id
				)
				oob.desc = "Add credit card, then return here and choose next"


@@ 264,7 264,7 @@ class Registration
				def decline_oob(reply)
					oob = OOB.find_or_create(reply.command)
					oob.url = CONFIG[:credit_card_url].call(
						reply.to.stripped.to_s,
						reply.to.stripped.to_s.gsub("\\", "%5C"),
						@customer.customer_id
					)
					oob.desc = DECLINE_MESSAGE