TOPIC:

How befour submit add new code for paypal buttom 1 year 5 months ago #243681

  • Topic Author
  • alaa1951gm@gmail.com
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 40
  • Thanks: 0
Hi,
ITS A real paypal account NOT sandbox

I will give you with 10$ credits you can use 10 time for check

its happening only with debit and credit card or with PayPal its ok

May be PayPal doesn't inform about an approval as credit card payments


i need this case to send the form without approval (for credit card only )
and keeb with paypal option .

If you need the credite card and user for administrator send to to how send it as privite message

Thanks

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 5 months ago #243697

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 808
...wait, let me check their javascript api on that.

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

How befour submit add new code for paypal buttom 1 year 5 months ago #243699

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 808
Ok, please do this:

In the form piece, you have this piece of code
onApprove: function(data, actions) {
            return actions.order.capture().then(function(details) {
                ff_validate_submit();
                JQuery('#paypalbutton').css('display', 'none');
                bfToggleFields('on','section','regular_submit_button',bfDeactivateField);
            });
        }

Please change it so it looks exactly like this
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);
            });
        }

Then before paying, right click on the screen and choose "inspect", then open the "console" tab. I want to track what details returns.

Then pay normally with a paypal account and copy the text in the "console" you see underneath "Order Approve:" and paste it somewhere for later.

Then pay with credit card and do the same.

Then post both texts in your next reply.

Then revert your code back to what it was.

Once I see what it returns, we can basically decide what happens when.

Regards,
Markus

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

How befour submit add new code for paypal buttom 1 year 5 months ago #243720

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

after i change the code
form not working

and give error

keysintl.com/en/website-design-silver-package-222$

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

How befour submit add new code for paypal buttom 1 year 5 months ago #243735

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

please change this line
console.log("Order Approve:");

to this
console.log('Order Approve:');

I think I forgot that the JS has been printed using php using regular quotes.
The above should fix that.

Regards,
Markus

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

How befour submit add new code for paypal buttom 1 year 5 months ago #243761

  • Topic Author
  • alaa1951gm@gmail.com
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 40
  • Thanks: 0
Dir sir ,

i have done what you told


plz find attach

File Attachment:

File Name: orderaprov...ment.txt
File Size:5 KB

File Attachment:

File Name: orderaprov...tton.txt
File Size:5 KB
Attachments:

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

Time to create page: 0.054 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!