Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I am not sure how to markup accepted payment methods for an offer.

Here are the schema:

Offer

PaymentMethod

Here is my basic example, is this correct?

<div itemscope="" itemtype="http://schema.org/Product">
    <span itemprop="name">Product Name</span>

    <span itemprop="description">Product Description</span>

    <div itemprop="offers" itemscope="" itemtype="http://schema.org/Offer">
      <span itemprop="price">$19.95</span>
      <meta itemprop="priceCurrency" content="USD" />
      <meta itemprop="availability" content="in_stock" />
      <a href="/buy-now" itemprop="url">Buy Now</a>
      <meta itemprop="acceptedPaymentMethod" content="http://purl.org/goodrelations/v1#PayPal" />
      <meta itemprop="acceptedPaymentMethod" content=" http://purl.org/goodrelations/v1#PaymentMethodCreditCard" />
    </div>
  </div>
share|improve this question
1  
Did you try this with rich snippets tool and see if the bot was able to correctly identify? –  Prasad Jan 9 '13 at 14:16
    
Yes I did, it pulls out a list of values. For example acceptedpaymentmethod:purl.org/goodrelations/v1#PayPal –  Cogslave Jan 9 '13 at 14:36
add comment

1 Answer

up vote 2 down vote accepted

The basic direction is correct, but you must use <link> and href=... instead of meta, since the value is a URL/URI, not a string:

<link itemprop="acceptedPaymentMethod" href="http://purl.org/goodrelations/v1#PayPal" />
<link itemprop="acceptedPaymentMethod" href=" http://purl.org/goodrelations/v1#PaymentMethodCreditCard" />

The rest looks fine at first sight.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.