Is there any other services that makes integrating a paypal payment easy?

|
praneet81 2019-05-26 17:51:46
The second doesn’t
skys215 2019-05-26 17:54:07
Have you tried declare that function before addeventlistener?
praneet81 2019-05-26 17:54:57
skys215 2019-05-26 17:54:07
Have you tried declare that function before addeventlistener?

No please see the code bro

2019-05-26 17:55:47
praneet81 2019-05-26 17:54:57
No please see the code bro

I think that you need declare the function calculateSalesPrice before call it

praneet81 2019-05-26 17:56:35
Okay let me try that
skys215 2019-05-26 17:58:38
2019-05-26 17:55:47
I think that you need declare the function calculateSalesPrice before call it

That’s what I mean

praneet81 2019-05-26 18:01:04
Nope declaring it before also didn’t work
skys215 2019-05-26 18:06:41
try with plain html
skys215 2019-05-26 18:06:53
try on jsfiddle or something
DesolatorMagno 2019-05-26 19:53:49
praneet81 2019-05-26 17:26:12

You sure about that?, Is the id correct?, Is that element a input? (Increment Input) or some element Wich can executed keyup?

DesolatorMagno 2019-05-26 19:55:13
JS is only half the story, after all if affect and is being affect by element in the dom.
praneet81 2019-05-26 20:01:22
laravel_discuss-6538.jpg

praneet81 2019-05-26 20:01:31
Yes i know and the element is fine
praneet81 2019-05-26 20:01:52
That’s what i checked first with the first console log which gives the correct result
DesolatorMagno 2019-05-26 20:23:18
Uhm, why no try with other events, key down, value change, what you are trying to do is pretty standard, so I think is a error of layer 5, what is between the machine and the chair.
praneet81 2019-05-26 20:24:39
DesolatorMagno 2019-05-26 20:23:18
Uhm, why no try with other events, key down, value change, what you are trying to do is pretty standard, so I think is a error of layer 5, what is between the machine and the chair.

I tried every event nothing works even tried a simple click even on submit button

praneet81 2019-05-26 20:25:06
A simple preventDefault() is also not working
DesolatorMagno 2019-05-26 20:26:29
praneet81 2019-05-26 20:01:31
Yes i know and the element is fine

This is the weird think, in those cases I would think that you are declaring the variable before writing the js.
You know stacks? Use it.

DesolatorMagno 2019-05-26 20:27:17
Create a js stack and put that code there instead that inside the section, it could do nothing but is much better like that.
praneet81 2019-05-26 20:27:34
I don’t know what a stack is
DesolatorMagno 2019-05-26 20:28:03
Search Laravel + stack, it come really in hand in the future.
DesolatorMagno 2019-05-26 20:28:24
Is easy and fast to implement.
praneet81 2019-05-26 20:28:36
How does that helps me in this situation?
praneet81 2019-05-26 20:28:53
I need the keyup event to do math calculation
DesolatorMagno 2019-05-26 20:30:18
Yes I understand, but doing it like that really help, first it make it sure that you declare js after the Dom is finished.
DesolatorMagno 2019-05-26 20:31:28
But at the end it is to you if you try to do better each day or just solve what you have in front.
79423 2019-05-26 20:31:51
is there any other services that makes integrating a paypal payment easy ?
79423 2019-05-26 20:32:03
because i hate paypal docs
79423 2019-05-26 20:32:08
sooooo much
DesolatorMagno 2019-05-26 20:32:23
Look at omnypay.
DesolatorMagno 2019-05-26 20:32:51
Not used it yet, but tried other packages from the same ppl and I really like those.
praneet81 2019-05-26 20:41:36
DesolatorMagno 2019-05-26 20:31:28
But at the end it is to you if you try to do better each day or just solve what you have in front.

Even stack didn’t help me

DesolatorMagno 2019-05-26 20:43:09
One thing less to assume.
DesolatorMagno 2019-05-26 20:44:15
Now, you are sure there is only 1 element with that Id and that you are changing the info in the right input? Try changing it in every input.
2019-05-26 20:46:56
I have in my website an instagram api which fetch all my data to this page. But I don’t want this I want to make it by another way. I want to fetch my Instagram data and save them in database and folder two a days then from that model fetch them to my website
2019-05-26 20:47:21
Anyone can give me an idea to do it
DesolatorMagno 2019-05-26 20:49:25
2019-05-26 20:46:56
I have in my website an instagram api which fetch all my data to this page. But I don’t want this I want to make it by another way. I want to fetch my Instagram data and save them in database and folder two a days then from that model fetch them to my website

Work directly with the original Instagram api and store the data..

praneet81 2019-05-26 20:49:43
My code works fine on a simple html file
praneet81 2019-05-26 20:49:51
So nothing wrong with my code
praneet81 2019-05-26 20:50:00
Don’t know why it isn’t working on blade
praneet81 2019-05-26 20:50:06
laravel_discuss-6569.jpg

praneet81 2019-05-26 20:50:16
praneet81 2019-05-26 20:50:06

Working as expected

DesolatorMagno 2019-05-26 20:50:17
Maybe blade hate you XD.
DesolatorMagno 2019-05-26 20:51:50
Try moving the js to a .js file and including it inside the blade, that way js will help you fix any error that you can’t see.
DesolatorMagno 2019-05-26 20:52:15
Maybe this code is fine but there is another in another part that is making it fail.
praneet81 2019-05-26 21:01:05
DesolatorMagno 2019-05-26 20:51:50
Try moving the js to a .js file and including it inside the blade, that way js will help you fix any error that you can’t see.

Will try that

praneet81 2019-05-26 21:31:53
DesolatorMagno 2019-05-26 20:51:50
Try moving the js to a .js file and including it inside the blade, that way js will help you fix any error that you can’t see.

That didn’t work either

loveycom 2019-05-27 08:50:37
I am currently working on a project and I use js, jquery. It’s working fine.

My project is also similar to yours.

The best way to debug js problem is to try the code line by line or section by section.

rizkyarlin 2019-05-27 09:03:49
loveycom 2019-05-27 08:50:37
I am currently working on a project and I use js, jquery. It’s working fine.

My project is also similar to yours.

The best way to debug js problem is to try the code line by line or section by section.

Yes, debugging skill is one of the most important things in programming. Sometimes you find yourself spend more time in debugging than writing the code

loveycom 2019-05-27 11:04:45
Exactly sir
|