我的广播为什么传不过去数据

我是新手尽量写的详细点谢谢
发数据
private void gotoWalletPay() {
Intent intent = new Intent();
intent.setAction("com.haihang.huanlehui.pay.util");
intent.putExtra("price", price);
sendOrderedBroadcast(intent, null);
WalletPayUtils.pay(this);
接收数据
public class WalletPayUtils {

private static String price;

public void onReceive(Context context, Intent intent) {

    price=intent.getStringExtra("price");  

} 
xml文档
<receiver android:name=".WalletPayUtils">
        <intent-filter android:priority="1000"> 
              <action android:name="com.haihang.huanlehui.pay.util"/>  
     </intent-filter>
    </receiver>

你没继承broadcast吧?

WalletPayUtils要继承自BroadcastReceiver

先看下 是不是WalletPayUtils没有继承BroadcastReceiver 要不 就用动态注册 直接在pay()中:
IntentFilter filter = new IntentFilter();
filter.addAction("com.haihang.huanlehui.pay.util");
context.registerReceiver(receiver, filter);

WalletPayUtils 需要继承BroadcastReceiver类。
然后重写oncreate方法。