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 6125137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:12:46+00:00 2026-05-23T16:12:46+00:00

This is how I create my product for Google DigitalContent dc = new DigitalContent();

  • 0

This is how I create my product for Google

DigitalContent dc = new DigitalContent();
dc.setEmailDelivery(true);
dc.setDisplayDisposition("OPTIMISTIC");
Money money = new Money();
money.setCurrency("GBP");
money.setValue(BigDecimal.valueOf(PRICE));
Item item = new Item();
item.setItemName(LICENSE);
item.setItemDescription(DESCRIPTION);
item.setUnitPrice(money);
item.setQuantity(QTY);
item.setDigitalContent(dc);
CartPoster.CheckoutShoppingCartBuilder builder = API_CONTEXT.cartPoster().makeCart()
    .addItem(item);

CheckoutRedirect checkoutRedirect = builder.buildAndPost();
return checkoutRedirect.getRedirectUrl();

It works except the product is not marked as digital, the important consequence of this is that users can cancel an order for 15 minutes after placing it, even if I have digitally sent the license.

What am I missing for Google to identify this as Digital Product ?

  • 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-23T16:12:47+00:00Added an answer on May 23, 2026 at 4:12 pm

    Never mind a reboot has solved the issue, so the code above is valid after all.

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

Sidebar

Related Questions

I have a product table which simplifies to this: create table product(id int primary
Is there a way to create a condition like this? @products = Product.find(:all, :limit
When somebody clicks on my google adwords link like this: http://www.myshoppingsite.com/product/rubberball.aspx?promo=promo123 I want my
Consider this example table (assuming SQL Server 2005): create table product_bill_of_materials ( parent_product_id int
I've got m2m relationship like this: #main table CREATE TABLE products_product ( id integer
Let's say we have a code portion like this: IProduct product = ProductCreator.CreateProduct(); //Factory
My create view code like this create VIEW [dbo].[vw_test] AS SELECT 'B' AS rtype,
I have this: Create Proc CrearNuevoImagen @imagen image AS INSERT INTO Imagenes(imagen) VALUES( @imagen
I have something like this: create table account ( id int identity(1,1) primary key,
Query was this: CREATE TABLE `query` ( `id` int(11) NOT NULL auto_increment, `searchquery` varchar(255)

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.