Fix for credit card flow

Stephen Paul Weber created

Change summary

lib/registration.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

lib/registration.rb 🔗

@@ -220,7 +220,7 @@ class Registration
 
 			def write
 				COMMAND_MANAGER.write(@reply).then do |riq|
-					CreditCard.for(riq, @customer, @tel)
+					CreditCard.for(riq, @customer, @tel).write
 				end
 			end
 
@@ -281,7 +281,7 @@ class Registration
 					reply.note_type = :error
 					reply.note_text = "#{reply_oob.desc}: #{reply_oob.url}"
 					COMMAND_MANAGER.write(reply).then do |riq|
-						CreditCard.for(riq, @customer, @tel)
+						CreditCard.for(riq, @customer, @tel).write
 					end
 				end
 			end