TOPIC:

How befour submit add new code for paypal buttom 1 year 3 months ago #243843

Please Log in or Create an account to join the conversation.

How befour submit add new code for paypal buttom 1 year 3 months ago #243847

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 808
Hi,

thank you. The sandbox is completely bogus at the moment regarding errors.
But I was able to pay with a sandbox visa card and the transaction went through normally. (the form also submitted properly)

However, whenever there was an system error, it did not return back anything.
Especially on this error

"Something went wrong. We'll take you back to checkout so you can try again."

I think this is related to sandbox problems.

However, there is an error-catchall that you should be able to use to alert a warning and restore parts of the form like buttons.

Please add this above "onApprove" in your code:
onError: function (err) {
    alert("Payment could not be completed. Please try again.");
 },

As I said, this couldn't be triggered ever for me in the sandbox account, but I feel it is not really reliable at the moment anyway.

However, according to paypal's docs, onError should enable you to take actions on errors:

developer.paypal.com/docs/business/check...ience/#handle-errors

Regards,
Markus

Please Log in or Create an account to join the conversation.

Last edit: Post by TheMuffinMan.

How befour submit add new code for paypal buttom 1 year 3 months ago #243866

  • Topic Author
  • alaa1951gm@gmail.com
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 40
  • Thanks: 0
Thanks a lot Mr Marcus
For your support
it's ok now every thing look fine

but i have one more 2 issue and one question

for the issue i have add this Visibility rules

turn off element Submit2 if PaymentMethod is فيزا-Paypal
turn off element Submit2 if PaymentMethod is Visa-Paypall
turn off section paypal_button if PaymentMethod is Bank transfer
turn off section paypal_button if PaymentMethod is نقدي
turn off section paypal_button if PaymentMethod is تحويل بنكي
turn off section paypal_button if PaymentMethod is Cash
turn off section cash_payment if PaymentMethod is Bank transfer
turn off section cash_payment if PaymentMethod is فيزا-Paypal
turn off section cash_payment if PaymentMethod is تحويل بنكي
turn off section cash_payment if PaymentMethod is Visa-Paypal
turn off section Re_Captcha_section if PaymentMethod is Visa-Paypal
turn off section Re_Captcha_section if PaymentMethod is فيزا-Paypal


turn on section paypal_button if PaymentMethod is فيزا-Paypal
turn on section paypal_button if PaymentMethod is Visa-Paypal


turn on section cash_payment if PaymentMethod is نقدي
turn on section cash_payment if PaymentMethod is Cash


turn on section Re_Captcha_section if PaymentMethod is Bank transfer
turn on section Re_Captcha_section if PaymentMethod is تحويل بنكي
turn on section Re_Captcha_section if PaymentMethod is نقدي
turn on section Re_Captcha_section if PaymentMethod is Cash

turn on element Submit2 if PaymentMethod is Bank transfer
turn on element Submit2 if PaymentMethod is Cash
turn on element Submit2 if PaymentMethod is تحويل بنكي
turn on element Submit2 if PaymentMethod is نقدي


in arabic paypal section came with button

this is the link and attachment

keysintl.com/%D8%A7%D8%AF%D8%A7%D8%B1%D8...%88%D9%84%D8%A9-499$


but in english paypal section came without button

this is the link and attachment


keysintl.com/en/managing-paid-advertising-499$

**** and i have disable the ReCaptcha
I don't want to use with paypal option but its give me error as attachment photo


for question

any possible to copy the form to other site i have other site i want to copy same form to it without rebuild everything again

this is the last code was add to Form pieces

JFactory::getDocument()->addScript(' www.paypal.com/sdk/js?client-id=AY3fKAXb...ZMb5sXP¤cy=USD ', array(), array('data-sdk-integration-source' => 'button-factory'));

echo "

<script>

JQuery(document).ready(function(){

paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'buynow',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: '1'
}
}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(details) {

console.log('Order Approve:');
console.log(details);
ff_validate_submit();
JQuery('#paypalbutton').css('display', 'none');
bfToggleFields('on','section','regular_submit_button',bfDeactivateField);

});
}
}).render('#paypalbutton');
});
</script>


";


last find attachment from screenshot


Thanks Alot for your good support



Please Log in or Create an account to join the conversation.

Last edit: Post by alaa1951gm@gmail.com.

How befour submit add new code for paypal buttom 1 year 3 months ago #243886

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 808
Hi,

for languages in the rules, use the pipe as "or" operator:
turn on element Submit2 if PaymentMethod is نقدي|تحويل بنكي|Cash|Bank Transfer

If I understand you right, it didn't fire properly.

Also make sure to put all rules that off something come first (before the "on" rules). This will give you a boost in performance and eliminates some conditional logic issues.

For the captcha I am not sure yet. Did you probably assign a captcha related validation to a field?

Regards,
Markus

Please Log in or Create an account to join the conversation.

How befour submit add new code for paypal buttom 1 year 3 months ago #243899

  • Topic Author
  • alaa1951gm@gmail.com
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 40
  • Thanks: 0
Thanks Mr Markus


it not working if user the pipe as "or" operator itray that

the proplem now in english section coming but boutton not coming as atachment


and for your asked ( For the captcha I am not sure yet. Did you probably assign a captcha related validation to a field? ) I dont now about this and i'm not understand it wht that mean


Thanks
Attachments:

Please Log in or Create an account to join the conversation.

How befour submit add new code for paypal buttom 1 year 3 months ago #243907

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 808
can you please export your form and send it to me?

Please Log in or Create an account to join the conversation.

Time to create page: 0.119 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!