Jump to content
  • 0
octoma

Square Payment Gateway (Alpha)

Question

Hopefully, This is proper forum etiquette. Whacking the dead!

 

2 part question:

I just started using the square mod. I'm interested to know.

1) How would you set the payment option to default?  The goal is to minimize the steps that the customer has to take (people are lazy and get annoyed easily) ultimately bypassing the pay/method page if possible.

2) How would you get rid of the shipping info on the square payment form (once again...people)? I want to declutter the page so it doesn't look like some mundane task.  

 

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0
4 minutes ago, octoma said:

Hopefully, This is proper forum etiquette. Whacking the dead!

 

2 part question:

I just started using the square mod. I'm interested to know.

1) How would you set the payment option to default?  The goal is to minimize the steps that the customer has to take (people are lazy and get annoyed easily) ultimately bypassing the pay/method page if possible.

2) How would you get rid of the shipping info on the square payment form (once again...people)? I want to declutter the page so it doesn't look like some mundane task.  

 

I split your post onto its own thread. I hope you are using the Square gateway that is included with Blesta, and not the old alpha version.

1. Are you asking about defaulting to Square when making payment? Is Square your only payment option enabled? Someone has asked for the ability to do this, but currently the client must select the payment method.

2. Blesta doesn't ask for shipping information, where do you see this?

Share this post


Link to post
Share on other sites
  • 0

I've already disabled the credit card and ACH options. Square is my only gateway/payment option. 

what I'm looking to do is to make it so that the client doesn't have to select/click the little radio button. I've tried a few Jquery tricks to click onload, on.load, DOM while making that radio button hidden. nothing works. I've also tried including  'checked'  in the code.

 

confirm.thumb.png.d37634ba89fbc70e023b094099149591.png

 

2) square is getting the customer info and applying it to shipping info

square.thumb.png.279aee7754dd111754ebc044cc360485.png

 

 

Share this post


Link to post
Share on other sites
  • 0

I found a solution. Its a square peg in a round hole but, it works.

edit the blesta->app->views->client->bootstrap->client_pay_method.pdt

remove line 75:                     

<h4><?php echo $this->Html->ifSet($options_heading);?></h4>

 

then add  this to the very bottom of the page:     

<script>
jQuery(function(){
   jQuery('.gateway').click();
   $('.gateway').parent().hide();
});
</script>

done1.thumb.png.9a967e5470cabaa6640bef58fcfbafe1.png

The form will process without the need for the customer to click the radio button.

Share this post


Link to post
Share on other sites
  • 0

As far as the shipping data goes, I spoke with square and they said to use

ask_for_shipping_address to false

I've tried:

'ask_for_shipping_address' => isset($address = false),
'ask_for_shipping_address' => false
'ask_for_shipping_address' = false,

all have failed. any suggestions?

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...