Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7611213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:36:53+00:00 2026-05-31T01:36:53+00:00

I am trying to implement PayPal into our website. I used cURL to interact

  • 0

I am trying to implement PayPal into our website. I used cURL to interact with the PayPal’s Express Checkout API. The website is German in nature so payments will be handled in Euro currency.

I executed my cURL and the API returned an error. I found out my $price is causing the error.

By default, $price = 56,85 with these value PayPal’s API returned an error. But if change this to $price = 56.85 the API succeeds.

I can simply use str_replace to replace comma with period. But what concerns me is the price value of the product. I am transacting in Euro.

Is there anyone care to explain how can I handle this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T01:36:54+00:00Added an answer on May 31, 2026 at 1:36 am

    You simply must use a dot . not a comma ,

    You could replace a comma with a dot in PHP like this:

    $price = "56,85";
    $price = str_replace(",", ".", $price);
    

    Now $price should be 56.85

    Also this won’t affect the value. 56.85 is the amount, whatever currency you’ll use. Just be sure to define the currency on paypal request as EUR.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to implement PayPal Adaptive Payments API. Into the headers I should include
Just playing around with the PayPal API, trying to implement Checkout Express so I
I'm trying to implement paypal into my website. So what i have is a
I'm trying to implement a payment system using the new PayPal API (Adaptive Payment).
I am trying to implement a recurring subscription service on a website using PayPal
I'm trying to implement monthly recurring payment on our website. We want user to
Found a really nice code for Accordion nav and am trying implement on our
I'm trying to implement adaptive payments but keep getting this weird error. Here's the
I am trying to implement PayPal IPN functionality. The basic protocol is as such:
Trying to implement this gallery on my website. http://coffeescripter.com/code/ad-gallery/ It is noted in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.